Skip to content

Commit

Permalink
access_token_key -> access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Oct 21, 2024
1 parent ea50536 commit c8f93ea
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 c8f93ea

Please sign in to comment.