progress on JWT

This commit is contained in:
lennyaiko
2025-04-03 17:54:29 +01:00
parent ec2ec07d60
commit a5f3119cdc
4 changed files with 23 additions and 8 deletions
+5
View File
@@ -1,4 +1,5 @@
import os
from datetime import timedelta
class Config:
@@ -24,6 +25,10 @@ class Config:
SIMBRELLA_BASE_URL = os.getenv("SIMBRELLA_BASE_URL", "http://127.0.0.1:6337")
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY", "secret-key")
JWT_ACCESS_TOKEN_EXPIRES = os.getenv("JWT_ACCESS_TOKEN_EXPIRES", timedelta(hours=1))
JWT_REFRESH_TOKEN_EXPIRES = os.getenv(
"JWT_REFRESH_TOKEN_EXPIRES", timedelta(days=30)
)
settings = Config()