Skip to content

Commit b127eb5

Browse files
authored
Merge pull request #39 from Sheldenburg/bug/fix-set-cookies
test the domain param to fix the cookie error
2 parents 16cf8f8 + 5b404ce commit b127eb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/app/api/routes/login.py

+2
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def github_oauth(session: SessionDep, code: str, response: Response):
254254
httponly=True,
255255
secure=True,
256256
samesite="lax",
257+
domain="ai-engineer-template.vercel.app",
257258
)
258259
return response
259260

@@ -282,5 +283,6 @@ def github_oauth(session: SessionDep, code: str, response: Response):
282283
httponly=True,
283284
secure=True,
284285
samesite="lax",
286+
domain="ai-engineer-template.vercel.app",
285287
)
286288
return response

0 commit comments

Comments
 (0)