Skip to content

Instantly share code, notes, and snippets.

@antonioiksi
Created November 10, 2017 08:02
Show Gist options
  • Save antonioiksi/7df5c85badfa3e3774df7e7bf4a65fc0 to your computer and use it in GitHub Desktop.
Save antonioiksi/7df5c85badfa3e3774df7e7bf4a65fc0 to your computer and use it in GitHub Desktop.
decode Simple JWT token
header = request.META.get('HTTP_AUTHORIZATION')
if header:
token = header.split(' ')[1]
print(token_backend.decode(token, verify=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment