On the quickstart - Auth0 Django API SDK Quickstarts: Authorization . It has some example code::
import jwt
....
token = get_token_auth_header(args[0])
unverified_claims = jwt.get_unverified_claims(token)
token_scopes = unverified_claims["scope"].split()
…
Now the module jwt does not have a function get_unverified_claims (it does have get_unverified_header) but jose does, so I changed it to::
from jose import jwt
Now it fails on the next line with::
jose.exceptions.JWTError: Error decoding token claims.
Token looks like this::
'cGhvZWJlQGhvcnNldGVjaC5pZTpWYWxlZ3JvX18xMTc='
Before I go any further, can anyone confirm whether this code should use the jwt module and be called get_unverified_header or whether it should be using jose, and if jose, where the problem might be?