i'm getting error [next-auth][warn][NO_SECRET] #8427
Unanswered
Ramnath0007
asked this question in
Help
Replies: 1 comment
-
|
https://stackoverflow.com/questions/70712152/how-to-fix-no-secret-warning-thrown-by-next-auth |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions