Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/f9025a6ba6cb0314bd1ee88e971ae37e to your computer and use it in GitHub Desktop.
Save brunomichetti/f9025a6ba6cb0314bd1ee88e971ae37e to your computer and use it in GitHub Desktop.
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'dj_rest_auth.jwt_auth.JWTCookieAuthentication',
),
}
REST_USE_JWT = True
JWT_AUTH_COOKIE = 'my-app-auth' # The cookie key name can be the one you want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment