Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/UW-Macrostrat/api-v3
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/UW-Macrostrat/api-v3:
  access_token_key -> access_token
  • Loading branch information
davenquinn committed Oct 23, 2024
2 parents 94182c0 + c8f93ea commit 6ebc7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def __call__(self, request: Request) -> Optional[str]:
authorization = request.cookies.get(access_token_key)
if authorization is None:
# Use the header if the cookie isn't set
authorization = request.headers.get("Authorization")
authorization = request.headers.get(access_token_key)

scheme, param = get_authorization_scheme_param(authorization)
if not authorization or scheme.lower() != "bearer":
Expand Down

0 comments on commit 6ebc7a1

Please sign in to comment.