Skip to content

Commit

Permalink
Merge pull request #9 from sacsbrainz/main
Browse files Browse the repository at this point in the history
chores: fixed for auth
  • Loading branch information
sacsbrainz authored Nov 10, 2023
2 parents 1f49c88 + 89f3b8f commit af74c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ export const setup = (app: Elysia) =>
exp: "15m",
})
)
.use(cookie({
sameSite: "none",
secure: true,
}));
.use(cookie());

const app = new Elysia()
.use(
Expand Down
3 changes: 2 additions & 1 deletion src/routes/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export const auth = (app: Elysia) =>
setCookie("access_token", accessToken, {
maxAge: 15 * 60, // 15 minutes
path: "/",
sameSite: "strict",
domain: Bun.env.NODE_ENV === "production" ? "sacsbrainz.com" : "",
sameSite: "none",
secure: Bun.env.NODE_ENV === "production",
httpOnly: true,
});
Expand Down

0 comments on commit af74c27

Please sign in to comment.