How to return, verify and update JWT when user verify at auth0 successfully

How to update, verify and send JWT when the user is authenticated at auth0 login page. How we can modify JTW content and how to put JWT in the header in the response back call.

Hi @rashid779939,

JWTs are immutable by design.

Can you please elaborate on what you would like to do.

Thanks,
Dan

Actually i need to returned some data in JWT payload when user is authenticated successfully. Would you please illustrate this flow how this could be achieve this and also how to decode JWT on receiver side to verify.

Thanks,
Rashid

You can add custom claims in a rule and decode using the following library:

jwt.io is also a great resource.

Appreciated, this works for me. Thanks

1 Like

I’m glad that worked.

Let us know if there is anything else we can do.

Thanks,
Dan

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