Skip to content

Commit b769bee

Browse files
committed
Docstring for utils.py
1 parent 6f23796 commit b769bee

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/authentication/utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
def extract_user_token(headers: Headers) -> str:
99
"""Extract the bearer token from an HTTP Authorization header.
1010
11-
Args:
12-
headers: The request headers containing the Authorization value.
11+
Parameters:
12+
headers (Headers): Incoming request headers from which the
13+
Authorization header will be read.
1314
1415
Returns:
15-
The extracted bearer token.
16+
str: The bearer token string extracted from the header.
1617
1718
Raises:
1819
HTTPException: If the Authorization header is missing or malformed.

0 commit comments

Comments
 (0)