use app.secret_key to enable session

This commit is contained in:
Swapnil 2024-01-30 11:38:58 +05:30
parent 6614f74c9f
commit 021f3bcb7c
Signed by: swapnil
GPG Key ID: 58029C48BB100574

View File

@ -16,6 +16,10 @@ client_id = get_env_variable('CLIENT_ID')
redirect_uri = get_env_variable('REDIRECT_URI')
optional_scopes = get_env_variable('OPTIONAL_SCOPES')
database_url = get_env_variable('DATABASE_URL')
secret_key = get_env_variable('APP_SECRET_KEY')
# Set secret key to enable sessions
app.secret_key = secret_key
csrf_protection_string = None