|
|
@ -61,7 +61,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): |
|
|
if not user: |
|
|
if not user: |
|
|
raise HTTPException( |
|
|
raise HTTPException( |
|
|
status_code=status.HTTP_401_UNAUTHORIZED, |
|
|
status_code=status.HTTP_401_UNAUTHORIZED, |
|
|
detail="Invalid authentication credentials", |
|
|
detail="Not authenticated", |
|
|
headers={"WWW-Authenticate": "Bearer"}, |
|
|
headers={"WWW-Authenticate": "Bearer"}, |
|
|
) |
|
|
) |
|
|
return user |
|
|
return user |
|
|
|