Token verification

If the token is already passing from the front end , then how can i validate and get the user profile data from that token?

Hi @KoushikGoramane,

An id_token can be requested, or you can use an access token against the /userinfo endpoint.

Let me know if you have questions.

Thanks,
Dan

I am getting the token from the front end , how to verify that token in the backend(nodejs) using jwt.verify method?

Yes, https://github.com/auth0/node-jsonwebtoken#jwtverifytoken-secretorpublickey-options-callback

Side note: the ID token has the client/frontend as audience, not the backend/API (like the access token has). However, it’s still possible to verify the token.

1 Like

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