Skip to main content
Question

How to use token info

  • Jul 11, 2022 9:43 AM UTC
  • 2 replies
  • 84 views

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

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 Solution Partner
  • Jul 12, 2022 8:52 PM UTC

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
  • Aug 12, 2022 12:32 AM UTC

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.