-
Notifications
You must be signed in to change notification settings - Fork 4k
i'm getting error [next-auth][warn][NO_SECRET] Β #8425
Copy link
Copy link
Closed
Labels
questionAsk how to do something or how something worksAsk how to do something or how something works
Description
Question π¬
how should i solve this error, I have checked my environment variable and route.js, everything seems to be perfectly aligned,
I even checked it in chat gpt and other AI. I can't find a conclusion or where this error is even happening.
help me to solve this error guys.

How to reproduce βοΈ
const handler = NextAuth({
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
})
],
this is my .env file in my project:
GOOGLE_ID=nmpmus065p0v09gfp5tg4i2r5e.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=***********
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL_INTERNAL=http://localhost:3000
NEXTAUTH_SECRET=********************
Contributing ππ½
Yes, I am willing to help answer this question in a PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionAsk how to do something or how something worksAsk how to do something or how something works