Comments (7)
It's due to this wrong fix : #10305
from next-auth.
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.
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.
Any fix is available for this ? , I have AUTH_SECRET in my env, still facing issue
from next-auth.
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.
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.
Also without this warning, yuo wuold have shipped to prod with an empty AUTH_SECRET
most likely
from next-auth.
Related Issues (20)
- Middleware Route Protection nextjs example result in Middleware relative urls error HOT 1
- Allow installing svelte 5 (pre-releases) as a peer dependency HOT 1
- Allow installing svelte 5 (pre-releases) as a peer dependency HOT 1
- EDGE_FUNCTION_INVOCATION_TIMEOUT when using DrizzleAdapter | timeout Vercel edge functions
- Missing: https://authjs.dev/guides/providers/credentials HOT 1
- Cannot leverage platform attribute in SvelteKit during sign-in HOT 5
- Fix typo
- Documentation on Custom Providers HOT 2
- Auth.js Pages Documentation Page link is broken - Shows 404 HOT 3
- GetToken() not working in middleware.ts HOT 1
- Invalid Callback URL "android-app://com.google.android.googlequicksearchbox/" HOT 1
- Invalid Callback URL "android-app://com.google.android.googlequicksearchbox/"
- Middleware breaks when using next-auth with Firestore Adapter HOT 1
- Update Edge Compatibility section for Middleware
- URL Redirection Error on Authentication Failure (Middleware file) HOT 1
- URL Redirection Error on Authentication Failure (Middleware file) HOT 1
- Discord Link invalid HOT 1
- Outdated Next-Auth v4 MongoDB adapter which is broken with MongoDB nodejs driver v6+ HOT 1
- Outdated Next-Auth v4 MongoDB adapter which is broken with MongoDB nodejs driver v6+
- Route "[...nextauth]/route.ts" does not match the required types of a Next.js Route. Invalid configuration "GET": HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-auth.