Skip to main content

Hello,

I'm a new Zapier user, so please bear with me.

I am trying to integrate our app into Zapier. I am getting success and a response with an auth_token and userId using basic auth on hitting our portal login API.
(See screenshots)

My question is, how can I take the auth_token and userId from the response and use them in the trigger, as they are required to hit different API in our app?

I tried using StoreClient to store the token but I am getting StoreClient is undefined error.

Please provide explaination in layman's terms.

Thanks in advance!

Hey @Ikhlas Azmat , 

It looks like the integration is currently using Basic authentication, correct?

If so, as you found, Basic auth does not store the token.

Instead, I might suggest checking out Session authentication:

https://platform.zapier.com/build/sessionauth

Session auth allows you to make a token exchange request, and the token is stored as a property on `bundle.authData` so it can be accessed and used in triggers and actions. 

For user id, you might consider creating a computed field:

https://platform.zapier.com/build/sessionauth#computed-fields


Thank you very much for the quick response! @connorz 

I will try to implement the session auth and follow through with the update.