Skip to content

Commit

Permalink
fixed auth bug that only exists in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AmeerArsala committed Jun 9, 2024
1 parent b756e5d commit ded2537
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/core/routes/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ async def callback(request: Request):
print(f"Redirecting to: {redirect_url}")

response = RedirectResponse(redirect_url)
response.set_cookie(
key="user_id",
value=user_auth_id,
domain=f".{config.SITE_DOMAIN}",
secure=config.USING_HTTPS,
httponly=True,
samesite="none",
)
# response.set_cookie(
# key="user_id",
# value=user_auth_id,
# domain=f".{config.SITE_DOMAIN}",
# secure=config.USING_HTTPS,
# httponly=True,
# samesite="none",
# )

# print(f"user_auth_id: {user_auth_id}")

Expand Down

0 comments on commit ded2537

Please sign in to comment.