Skip to content

Commit

Permalink
fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
torkashvandmt committed Jun 6, 2024
1 parent 0b5d688 commit b9ced59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2_lib/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async def authenticate(self, request: HTTPConnection, token: Optional[str] = Non
return None

if token is None:
token_or_extracted_id_token = await self.id_token_extractor.extract(request, auto_error=True)
token_or_extracted_id_token = await self.id_token_extractor.extract(request, auto_error=True) or ""
else:
token_or_extracted_id_token = token

Expand Down

0 comments on commit b9ced59

Please sign in to comment.