When writing a custom Login action how do you check what the grant/token type is?
For example the action is triggered on both id_token requests AND access_token requests, but the actions you wish to take in the script may differ between the two.
Thanks for reaching out to the Auth0 Community!
I understand that you’d like to write custom logic for your Post-Login Action depending on the token type.
To do so, you can write custom logic conditionally for the API object to make changes to the
You can learn more about the Post-Login Action Event and API Objects in our documentation below:
Hoped this helps! Please let me know if you have any questions.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.