diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index ef3e2223..027ffb8b 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -125,16 +125,15 @@ SERVER_IP = "127.0.0.1" CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_CREDENTIALS = True -if os.getenv('REACT_UI', False): - REST_FRAMEWORK = { - 'DEFAULT_AUTHENTICATION_CLASSES': [ - 'rest_framework_simplejwt.authentication.JWTAuthentication', - ], - } +REST_FRAMEWORK = { + 'DEFAULT_AUTHENTICATION_CLASSES': [ + 'rest_framework_simplejwt.authentication.JWTAuthentication', + ], +} - SIMPLE_JWT = { - 'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30), - 'REFRESH_TOKEN_LIFETIME': timedelta(days=1), - 'ROTATE_REFRESH_TOKENS': False, # Optional: Whether to rotate refresh tokens - 'BLACKLIST_AFTER_ROTATION': True, # Optional: Whether to blacklist refresh tokens - } +SIMPLE_JWT = { + 'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30), + 'REFRESH_TOKEN_LIFETIME': timedelta(days=1), + 'ROTATE_REFRESH_TOKENS': False, # Optional: Whether to rotate refresh tokens + 'BLACKLIST_AFTER_ROTATION': True, # Optional: Whether to blacklist refresh tokens +}