Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssadai committed Nov 29, 2024
1 parent 3fa22aa commit 2566f1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/api/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def check_client_id():


def extract_token(token: str) -> str:
"""Extract the token from the authorization header."""
"""
Extract the token from the authorization header.
This ensures that it is passed on to downstream APIs without the authorization scheme.
"""
# Extract the token from the "Bearer" scheme
# (See https://github.com/tiangolo/fastapi/blob/master/fastapi/security/oauth2.py#L473-L485)
# TODO: Check also if scheme of token is "Bearer"?
Expand Down

0 comments on commit 2566f1d

Please sign in to comment.