From 24afe9fa9e108eece38d82af5692b2e7b4785766 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:37:48 +0100 Subject: [PATCH] tentative to add ci pipeline --- backend/app/routers/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(