Created
November 10, 2017 08:02
-
-
Save antonioiksi/7df5c85badfa3e3774df7e7bf4a65fc0 to your computer and use it in GitHub Desktop.
decode Simple JWT token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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