Skip to content

Commit f4c2b68

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
dont log token errors
1 parent 8b3d826 commit f4c2b68

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

server/auth.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,14 @@ async def _verify_firebase_id_token(token: str) -> FirebaseIDTokenData:
3636
auth.ExpiredIdTokenError,
3737
auth.RevokedIdTokenError,
3838
) as e:
39-
logging.exception(msg=e, stack_info=True)
4039
raise HTTPException(
4140
status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid or expired token"
4241
)
4342
except auth.UserDisabledError as e:
44-
logging.exception(msg=e, stack_info=True)
4543
raise HTTPException(
4644
status_code=status.HTTP_404_NOT_FOUND, detail="User disabled"
4745
)
4846
except (ValueError, auth.CertificateFetchError, auth.FirebaseError) as e:
49-
logging.exception(msg=e, stack_info=True)
5047
raise HTTPException(
5148
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
5249
detail="Internal server error",

0 commit comments

Comments
 (0)