wip: слияние прода-версии с портированными фичами (до merge iovi)
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import bcrypt
|
||||
import jwt
|
||||
from jwt.exceptions import PyJWTError
|
||||
@@ -6,10 +7,10 @@ from fastapi import Depends, HTTPException, status
|
||||
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
|
||||
import database
|
||||
import models
|
||||
|
||||
|
||||
SECRET = os.getenv("GYM_JWT_SECRET", "dev-secret-change-me")
|
||||
ALGORITHM = "HS256"
|
||||
EXPIRE_DAYS = int(os.getenv("GYM_JWT_EXPIRE_DAYS", "30"))
|
||||
|
||||
Reference in New Issue
Block a user