Skip to content

i'm getting error [next-auth][warn][NO_SECRET]  #8425

@Ramnath0007

Description

@Ramnath0007

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.
next auth error image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsk how to do something or how something works

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions