Browse Source

add new

master
panda 7 months ago
parent
commit
785ddb9bf8
  1. 2
      dependencies.py

2
dependencies.py

@ -9,7 +9,7 @@ from internal.database import execute_query
# openssl rand -hex 32 # openssl rand -hex 32
SECRET_KEY = "e86c54c19962d562dab09081e5a6ce0c8ef49ac9a49cdb7135aa670707bbc894" SECRET_KEY = "e86c54c19962d562dab09081e5a6ce0c8ef49ac9a49cdb7135aa670707bbc894"
ALGORITHM = "HS256" ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 30
ACCESS_TOKEN_EXPIRE_MINUTES = 240
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/users/token") oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/users/token")

Loading…
Cancel
Save