moving AuthConfig Class

This commit is contained in:
maxDorninger
2025-03-27 18:36:06 +01:00
parent 8408cc77ad
commit 450514f549
3 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
from pydantic_settings import BaseSettings
class AuthConfig(BaseSettings):
# to get a signing key run:
# openssl rand -hex 32
jwt_signing_key: str
jwt_signing_algorithm: str = "HS256"
jwt_access_token_lifetime: int = 60 * 24 * 30
@property
def jwt_signing_key(self):
return self._jwt_signing_key