update auth.py
This commit is contained in:
1 parent
a8ce4cf1f1
commit
9e69edc08b
1 file changed
+6
-2
+6
-2
@@ -2,9 +2,13 @@ from database import execute, fetch_one
|
||||
import bcrypt
|
||||
from jose import jwt, JWTError
|
||||
from datetime import datetime, timedelta
|
||||
from fastapi import Header, HTTPException
|
||||
from fastapi import Header, HTTPException
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
|
||||
SECRET_KEY = ""
|
||||
load_dotenv()
|
||||
|
||||
SECRET_KEY = os.getenv("SECRET_KEY")
|
||||
ALGORITHM = "HS256"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user