backend: configureable Token-Expire
This commit is contained in:
parent
9fda6b5a5c
commit
c24a5ce480
2 changed files with 3 additions and 1 deletions
|
|
@ -14,6 +14,8 @@ class Settings(BaseModel):
|
|||
|
||||
secret_key: str = os.getenv("SECRET_KEY", "CHANGE_ME")
|
||||
|
||||
access_token_expire_minuted: int = int(os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", "60"))
|
||||
|
||||
@property
|
||||
def database_url(self):
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue