Skip to content

Commit

Permalink
Update oauth2_lib/fastapi.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Moes <[email protected]>
  • Loading branch information
Igoranze and Mark90 authored Oct 24, 2024
1 parent a7103f7 commit feac762
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 @@ -156,7 +156,7 @@ async def __call__(self, request: Request) -> Optional[HTTPAuthorizationCredenti
return await super().__call__(request)

async def extract(self, request: Request) -> str | None:
"""Extract the token from the http_auth_credentials."""
"""Extract the token from the Authorization header in the request."""
http_auth_credentials = await super().__call__(request)

return http_auth_credentials.credentials if http_auth_credentials else None
Expand Down

0 comments on commit feac762

Please sign in to comment.