diff --git a/backend/app/routers/auth.py b/backend/app/routers/auth.py index 4d46a0b..1734876 100644 --- a/backend/app/routers/auth.py +++ b/backend/app/routers/auth.py @@ -32,7 +32,7 @@ def create_access_token(data: dict) -> str: to_encode = data.copy() expire = datetime.now(timezone.utc) + timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES) to_encode.update({"exp": expire}) - return jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) + return jwt.encode(to_encode, SECRET_KEY, algorithm="HS256") async def get_current_user(token: str = Depends(oauth2_scheme)) -> loginData: credentials_exception = HTTPException(