Skip to content

Commit 49c8ede

Browse files
committed
Solve SECRET_KEY
1 parent bd7e24d commit 49c8ede

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.coverage

-68 KB
Binary file not shown.

routers/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
auth_router = APIRouter(prefix='/auth', tags=['Authentication'] )
1717

1818
# Security settings
19-
SECRET_KEY = os.getenv("SECRET_KEY")
20-
ALGORITHM = os.getenv("ALGORITHM")
19+
SECRET_KEY = os.getenv("SECRET_KEY","d2e2b8fe4827c93ad7ac831a45b2f28c6f33e04f975c0b4b2b1b8d8b38d694a4")
20+
ALGORITHM = os.getenv("ALGORITHM", "HS256")
2121
bcrypt_context = CryptContext(schemes=['bcrypt'], deprecated='auto')
2222
oauth2_bearer = OAuth2PasswordBearer(tokenUrl='auth/token')
2323

0 commit comments

Comments
 (0)