Coder Social home page Coder Social logo

Comments (7)

LoisDuplain avatar LoisDuplain commented on May 18, 2024

It's due to this wrong fix : #10305

from next-auth.

ndom91 avatar ndom91 commented on May 18, 2024

AUTH_SECRET can be set as an environment variable, so you don't need to recompile for each customer.

Also it's not AUTH_SECRET that is required, just a secret in general. You can use the secret config option as well. However, in your situation, that would require a re-compile, so I'd recommend the AUTH_SECRET environment variable.

from next-auth.

nphmuller avatar nphmuller commented on May 18, 2024

Hi @LoisDuplain , I opened a new issue (#10478), because I think this might have been closed incorrectly. I hope you don't mind I copied over your details described in this issue.

from next-auth.

pranavmappoli avatar pranavmappoli commented on May 18, 2024

Any fix is available for this ? , I have AUTH_SECRET in my env, still facing issue

from next-auth.

NickooMar avatar NickooMar commented on May 18, 2024

@pranavmappoli

Any fix is available for this ? , I have AUTH_SECRET in my env, still facing issue

I was facing the same issue, and the problem was that these specific environment variables can't be read in the 'use client' directive, so you must locate that logic in a server side file.

Read: Nextjs Enviroment variables

from next-auth.

ndom91 avatar ndom91 commented on May 18, 2024

Yeah the issue is that your AUTH_SECRET isn't being picked up somewhere along the line.

Also keep in mind when building for prod, next.js is prerendering these apps so its gotta be there during build too

from next-auth.

ndom91 avatar ndom91 commented on May 18, 2024

Also without this warning, yuo wuold have shipped to prod with an empty AUTH_SECRET most likely

from next-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.