"auth0-spa-js" get JWT for API access with correct audience

My BAD - Problem solved!

I have by mistake been looking at the id_token and not the access_token.

A bit og background:
The access_token was until i provided the updated audience not a JWT but an Opaque token.
Hence to get a JWT, I accessed the id_token as this is a JWT. But forgot to look back at the access_token when I added the correct audience.

@dan.woda Thanks for your input and patience with me, the auth0 newbie :blush:

Here is link til my github with the above example:

1 Like