You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
...which expect the token to be in the abc.xyz.def shape.
How do I get angular-jwt to get the token into the said shape? I couldn't see an encode function anywhere (as opposed to the decode which accepts this shape).
The text was updated successfully, but these errors were encountered:
it looks like the issue is that you're getting an opaque access token instead of a JWT access token from Auth0. angular-jwt doesn't actually come into play for that since it's Auth0 that is issuing the tokens.
Can you open an issue here with some more description including your WebAuth configuration?
ID tokens aren't meant to be sent to APIs, you do need to send the access token. The issue is likely that API authorization for your app isn't configured correctly which is why you were getting an opaque access token and not a JWT. If you open another issue here we can figure out what's going on :)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm following this example: https://auth0.com/docs/quickstart/spa/angularjs/03-calling-an-api
and the Authorization header looks like this:
...but it is incompatible with the Python Flask backend example here: https://auth0.com/docs/quickstart/backend/python/01-authorization
...which expect the token to be in the
abc.xyz.def
shape.How do I get
angular-jwt
to get the token into the said shape? I couldn't see anencode
function anywhere (as opposed to thedecode
which accepts this shape).The text was updated successfully, but these errors were encountered: