use app.secret_key to enable session

This commit is contained in:
Swapnil 2024-01-30 11:38:58 +05:30
parent 12db644751
commit e489685196
Signed by: swapnil
GPG Key ID: 58029C48BB100574
1 changed files with 4 additions and 0 deletions

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