Skip to content

Instantly share code, notes, and snippets.

@antonioiksi
Created November 10, 2017 07:59
Show Gist options
  • Save antonioiksi/7c23bb8c9ec0e4927e30cef002323c53 to your computer and use it in GitHub Desktop.
Save antonioiksi/7c23bb8c9ec0e4927e30cef002323c53 to your computer and use it in GitHub Desktop.
get JWT token from HEADER for SimpleJWT django rest framework
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