Skip to content

Commit

Permalink
Set the JWT token expiration time to 1 day.
Browse files Browse the repository at this point in the history
  • Loading branch information
WongSaang committed Mar 4, 2023
1 parent 2b46868 commit 1684e7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chatgpt_ui_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@

REST_AUTH = {
'USE_JWT': True,
'SESSION_LOGIN': False,
'JWT_AUTH_COOKIE': 'auth',
'JWT_AUTH_HTTPONLY': True,
'USER_DETAILS_SERIALIZER': 'account.serializers.UserDetailsSerializer'
}

SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(hours=1),
"ACCESS_TOKEN_LIFETIME": timedelta(days=1),
}

# Allauth settings
Expand Down

0 comments on commit 1684e7c

Please sign in to comment.