jira-25 access token API

This commit is contained in:
jain
2023-07-14 15:02:53 +05:30
parent 7b9b5a2c6f
commit d163f43c85
4 changed files with 44 additions and 14 deletions

View File

@ -97,8 +97,8 @@ REST_FRAMEWORK = {
'PAGE_SIZE': 5,
}
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=50),
'REFRESH_TOKEN_LIFETIME': timedelta(days=7),
'ACCESS_TOKEN_LIFETIME': timedelta(hours=2, minutes=59, seconds=59, microseconds=999999),
'REFRESH_TOKEN_LIFETIME': timedelta(hours=71, minutes=59, seconds=59, microseconds=999999),
}
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases