How to use token info

  • 11 July 2022
  • 2 replies

Userlevel 1

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

Userlevel 7
Badge +12

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. 

Userlevel 6
Badge +8

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.