Created
November 10, 2017 07:59
-
-
Save antonioiksi/7c23bb8c9ec0e4927e30cef002323c53 to your computer and use it in GitHub Desktop.
get JWT token from HEADER for SimpleJWT django rest framework
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
token = sub('Bearer ', '', request.META.get('HTTP_AUTHORIZATION', None)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment