diff --git a/chatgpt_ui_server/settings.py b/chatgpt_ui_server/settings.py index 9d9e6ef..c1030fb 100644 --- a/chatgpt_ui_server/settings.py +++ b/chatgpt_ui_server/settings.py @@ -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