Skip to content

Commit

Permalink
Try to fix parameter ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Oct 18, 2024
1 parent 409c0e6 commit 3f69e24
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,25 +303,25 @@ async def redirect_callback(code: str, state: Optional[str] = None):

# Set a cookie for the API domain
response.set_cookie(
key=access_token_key,
value=f"Bearer {access_token}",
httponly=True,
access_token_key,
f"Bearer {access_token}",
domain=domain,
httponly=True,
samesite="lax",
)
# Set the same cookie for localhost if we're doing a redirect to another domain (this is likely a dev mode request)
# We may want to restrict this to development environments in the future...
# if redirect_domain not in [domain, ""]:
response.set_cookie(
key=access_token_key,
value=f"Bearer {access_token}",
httponly=True,
access_token_key,
f"Bearer {access_token}",
domain="localhost",
httponly=True,
samesite="lax",
)
response.set_cookie(
key=access_token_key,
value=f"Bearer {access_token}",
access_token_key,
f"Bearer {access_token}",
httponly=True,
)

Expand Down

0 comments on commit 3f69e24

Please sign in to comment.