This commit is contained in:
phil 2025-01-03 02:01:22 +01:00
parent 17662dd5bc
commit c98382843b

View file

@ -106,7 +106,6 @@ async def login(request: Request, provider: str) -> RedirectResponse:
except AttributeError:
raise HTTPException(500, "")
try:
breakpoint()
return await provider_.authorize_redirect(request, redirect_uri)
except HTTPError:
raise HTTPException(status.HTTP_401_UNAUTHORIZED, "Cannot reach provider")
@ -119,7 +118,6 @@ async def auth(request: Request, provider: str) -> RedirectResponse:
except AttributeError:
raise HTTPException(500, "")
try:
breakpoint()
token = await provider_.authorize_access_token(request)
except OAuthError as error:
raise HTTPException(status_code=401, detail=error.error)