Skip to content

Commit

Permalink
fix: astro cookies issue (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fero1xd authored Dec 11, 2024
1 parent a585875 commit fcf872a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/client/astro/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export const client = createClient({
export function setTokens(ctx: APIContext, access: string, refresh: string) {
ctx.cookies.set("refresh_token", refresh, {
httpOnly: true,
sameSite: "strict",
sameSite: "lax",
path: "/",
maxAge: 34560000,
})
ctx.cookies.set("access_token", access, {
httpOnly: true,
sameSite: "strict",
sameSite: "lax",
path: "/",
maxAge: 34560000,
})
Expand Down

0 comments on commit fcf872a

Please sign in to comment.