Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next auth set to false in env wont work. #129

Open
Bwaite43 opened this issue Aug 10, 2023 · 1 comment
Open

next auth set to false in env wont work. #129

Bwaite43 opened this issue Aug 10, 2023 · 1 comment

Comments

@Bwaite43
Copy link

Bwaite43 commented Aug 10, 2023

not sure what im doing wrong but I set the NEXTAUTH_ENABLED=false it gives me this.

[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret Please define a secret in production. MissingSecret [MissingSecretError]: Please define a secret in production.
at assertConfig (/app/node_modules/next-auth/core/lib/assert.js:42:12)
at AuthHandler (/app/node_modules/next-auth/core/index.js:77:52)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NextAuthApiHandler (/app/node_modules/next-auth/next/index.js:22:19)
at async NextAuth._args$ (/app/node_modules/next-auth/next/index.js:106:14) {
code: 'NO_SECRET'


NextAuth

NEXTAUTH_ENABLED=false
#NEXTAUTH_EMAIL_PATTERN=[email protected]
#NEXTAUTH_URL=http://localhost:3000
#must replace if you use NextAuth
#NEXTAUTH_SECRET=
#GITHUB_CLIENT_ID=
#GITHUB_CLIENT_SECRET=
#GOOGLE_CLIENT_ID=
#GOOGLE_CLIENT_SECRET=
#COGNITO_CLIENT_ID=
#COGNITO_CLIENT_SECRET=
#COGNITO_ISSUER=

I have tested both the docker and installed locallly. same problem.

@makeneko
Copy link

Commenting out NEXTAUTH_SECRET doesn't seem to work; setting the value of dummy seems to be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants