burhan-syed / troddit

A web client for Reddit with authenticated logins and a variety of browsing options
https://www.troddit.com
GNU Affero General Public License v3.0
554 stars 82 forks source link

Server error There is a problem with the server configuration. Check the server logs for more information. #94

Closed X4Q4x6yf closed 1 year ago

X4Q4x6yf commented 2 years ago

I've got troddit set up on my own server. I works fine until I login. I've created the secret and still get this error.

[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 NextAuthHandler (/app/node_modules/next-auth/core/index.js:70:52)

at processTicksAndRejections (node:internal/process/task_queues:96:5)

at async NextAuthNextHandler (/app/node_modules/next-auth/next/index.js:23:19)

at async /app/node_modules/next-auth/next/index.js:59:32

at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:182:9)

at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:386:9)

at async Object.fn (/app/node_modules/next/dist/server/base-server.js:488:37)

at async Router.execute (/app/node_modules/next/dist/server/router.js:228:32)

at async NextNodeServer.run (/app/node_modules/next/dist/server/base-server.js:600:29) {

code: 'NO_SECRET'

burhan-syed commented 2 years ago

Are you're providing a NEXTAUTH_SECRET environment variable?

codeyourwaytofreedom commented 7 months ago

Are you're providing a NEXTAUTH_SECRET environment variable?

thanks Sir