Get jwt access token using react-sdk (getAccessTokenSilently)

I am using @auth0/auth0-react@1.3.0. I tried to get the access token in jwt format using getAccessTokenSilently but it did not work. I did also have “audience:” as a parameter.
How can I get the jwt token? Is it better to use the opaque token? If so, how can my server verify that opaque token?

If you added a valid audience then you should return a JWT. Your audience must be an API that is registered in the dashboard. This FAQ might help.

1 Like

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