How to get the idToken in post login action

Within the postlogin action I need the user’s idtoken to make an external call to my system, is there this property in any object?

Hi there @dannylo.santo, welcome to the community!

Assuming there is an ID Token, you should be able to access it with api.idToken in the action. For reference, please see:

Hope this helps!

2 Likes

Hey @tyf thanks for response.

But i never have a idToken during an execution of a post login action.

Is there any way to acquire this value during the execution of the action?
I’m needing to use the token to make a query in my system

No problem, happy to help where I can!

Are you using an app/authentication flow where you expect to have an ID Token at this point?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.