Skip to main content
Question

How to use token info


how can we use token info in code. In my app I want to use empid from my bearer token.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • July 12, 2022

Anything you return from the authorization step can be available in the bundle.authData object.

if you are using api key authentication you may need to add it as a calculated field. If you need to make additional calls to your api to retrieve empid you should be able to do so as well. 


shalgrim
Forum|alt.badge.img+8
  • Zapier Staff
  • 406 replies
  • August 12, 2022

Are you set here, @Harshida? Did GetUWired get you going?

If not, can you tell me a bit more about what empid is and how it gets in a bearer token? You’ll want to be careful with secrets to make sure they don’t leak.

Note that we also have a developer support team you can contact.