Skip to content

Commit cb65118

Browse files
committed
Cookie設定
1 parent 6604fc5 commit cb65118

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

frontend/package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/auth/config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ export const providerMap = providers
2222

2323
export const { auth, handlers, signIn, signOut } = NextAuth({
2424
providers,
25+
cookies: {
26+
pkceCodeVerifier: {
27+
name: '__Secure-next-auth.pkce.code_verifier',
28+
options: {
29+
httpOnly: true,
30+
path: '/',
31+
secure: true,
32+
sameSite: 'lax',
33+
},
34+
},
35+
},
2536
pages: {
2637
signIn: '/login',
2738
},

0 commit comments

Comments
 (0)