Commit 366679ff authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: 'dict' object issue

parent 1d3fadb2
...@@ -61,10 +61,7 @@ def extract_token_from_auth_header(auth_header: str): ...@@ -61,10 +61,7 @@ def extract_token_from_auth_header(auth_header: str):
def get_http_authorization_cred(auth_header: str): def get_http_authorization_cred(auth_header: str):
try: try:
scheme, credentials = auth_header.split(" ") scheme, credentials = auth_header.split(" ")
return { return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials)
"scheme": scheme,
"credentials": credentials,
}
except: except:
raise ValueError(ERROR_MESSAGES.INVALID_TOKEN) raise ValueError(ERROR_MESSAGES.INVALID_TOKEN)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment