Skip to content

Commit 69e6830

Browse files
committed
feat: Add secret string to hash tokens
1 parent f049283 commit 69e6830

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.env.local.example

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
NEXTAUTH_URL=http://localhost:3000
2+
NEXTAUTH_SECRET=<YOUR_SECRET_STRING>
23
EMAIL_SERVER_HOST=smtp.example.com.com
34
EMAIL_SERVER_PORT=465
45
EMAIL_SERVER_USER=<YOUR_SMTP_USER>

pages/api/auth/[...nextauth].js

+1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ export default NextAuth({
7676
],
7777
adapter: FaunaAdapter(client),
7878
events: { createUser: sendWelcomeEmail },
79+
secret: process.env.NEXTAUTH_SECRET,
7980
});

0 commit comments

Comments
 (0)