reviewed
This commit is contained in:
parent
a56a4c076a
commit
a31bd8246c
10 changed files with 15 additions and 71 deletions
|
|
@ -15,6 +15,7 @@ SECRET_KEY = os.environ["SECRET_KEY"] # Required - see .env.example
|
|||
ALGORITHM = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 7 # 7 days
|
||||
COOKIE_NAME = "auth_token"
|
||||
COOKIE_SECURE = os.environ.get("COOKIE_SECURE", "false").lower() == "true"
|
||||
|
||||
|
||||
def verify_password(plain_password: str, hashed_password: str) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue