Skip to content

Commit 4a635ef

Browse files
authored
added secret and id to nextAuthOptions to work on production
1 parent 22e2b71 commit 4a635ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ GITHUB_ID=28f9fdc87cb0dfc3fec7
1515
GITHUB_SECRET=9c7e709e8882dd3498fa5407469931e0e99b94ea
1616

1717
GOOGLE_CLIENT_ID=176116788100-cv8354tkaqlpf69qmi3d8hkv4t5osm9e.apps.googleusercontent.com
18-
GOOGLE_CLIENT_SECRET=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
18+
GOOGLE_CLIENT_SECRET=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
19+
20+
# NextAuth
21+
NEXTAUTH_SECRET=PrS+N/uf+Wj+03iVbwR0MOsEr8TYEFS8cv3dM7ZGHkI=

src/lib/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const authOptions: NextAuthOptions = {
2727
}),
2828
CredentialsProvider({
2929
name: "Sign in",
30+
id: "credentials",
3031
credentials: {
3132
email: {
3233
label: "Email",
@@ -82,4 +83,5 @@ export const authOptions: NextAuthOptions = {
8283
return token;
8384
},
8485
},
86+
secret: process.env.NEXTAUTH_SECRET
8587
};

0 commit comments

Comments
 (0)