backend: configureable Token-Expire
This commit is contained in:
parent
9fda6b5a5c
commit
c24a5ce480
2 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ from .config import settings
|
|||
|
||||
SECRET_KEY = settings.secret_key
|
||||
ALGORITHM = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES = 60
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES = settings.access_token_expire_minuted
|
||||
|
||||
pwd_context = CryptContext(schemes=["bcrypt_sha256"], deprecated="auto")
|
||||
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/token")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue