mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-13 22:12:40 -04:00
8 lines
261 B
Python
8 lines
261 B
Python
def get_authorization_scheme_param(
|
|
authorization_header_value: str | None,
|
|
) -> tuple[str, str]:
|
|
if not authorization_header_value:
|
|
return "", ""
|
|
scheme, _, param = authorization_header_value.partition(" ")
|
|
return scheme, param.strip()
|