--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/73944851-58f4-4d55-ba67-b88bd55f1cfdn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CALYgY9GRWoq7jgT7sxWTGp7%3Drzb-D8jMSBAXMswahFYB7dxmRA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAMSz6bmXYZXSws%3DaR093_QaeiYkw_g19YbXO2NKDfxkJ2e9xxA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CALYgY9HP8BW36J5xFat5mi4Xp99sjk35MbadmJ%2BxdEvo2HSH9Q%40mail.gmail.com.
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_simplejwt.authentication.JWTAuthentication',
),
}
# JWT Settings
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=20),
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
'AUTH_HEADER_TYPES': ('Bearer',),
'AUTH_HEADER_NAME': 'HTTP_AUTHORIZATION',
'USER_ID_FIELD': 'id',
'USER_ID_CLAIM': 'user_id',
'USER_AUTHENTICATION_RULE': 'rest_framework_simplejwt.authentication.default_user_authentication_rule',
'AUTH_TOKEN_CLASSES': ('rest_framework_simplejwt.tokens.AccessToken',),
'TOKEN_TYPE_CLAIM': 'token_type',
'TOKEN_USER_CLASS': 'rest_framework_simplejwt.models.TokenUser',
'JTI_CLAIM': 'jti',
}
INSTALLED_APPS = [
.........
'rest_framework_simplejwt',
.........
]
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAKc113W%3DvFV%2B1vx1704z2Xv%3DZuaBspyfDV5Wxme4px5E%3Dhb%3DyA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/ed0e0a7f-497e-4d0c-848a-90b8f6bc14d2n%40googlegroups.com.