We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f23796 commit b769beeCopy full SHA for b769bee
1 file changed
src/authentication/utils.py
@@ -8,11 +8,12 @@
8
def extract_user_token(headers: Headers) -> str:
9
"""Extract the bearer token from an HTTP Authorization header.
10
11
- Args:
12
- headers: The request headers containing the Authorization value.
+ Parameters:
+ headers (Headers): Incoming request headers from which the
13
+ Authorization header will be read.
14
15
Returns:
- The extracted bearer token.
16
+ str: The bearer token string extracted from the header.
17
18
Raises:
19
HTTPException: If the Authorization header is missing or malformed.
0 commit comments