Skip to content

Commit 19248e4

Browse files
committed
add session stategy option and secret val
1 parent b1ec26d commit 19248e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/api/auth/[...nextauth]/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import GithubProvider from "next-auth/providers/github";
55

66
export const nextAuthOptions = {
77
adapter: PrismaAdapter(prisma),
8+
session: {
9+
strategy: 'jwt',
10+
},
11+
secret: process.env.NEXTAUTH_SECRET!,
812
providers: [
913
GithubProvider({
1014
clientId: process.env.GITHUB_CLIENT_ID!,

0 commit comments

Comments
 (0)