NextAuth.js is a open source authentication solution for Next.js applications. This tag is rarely used alone and is most often used in conjunction with [next.js]
Questions tagged [next-auth]
1602 questions
0
votes
1 answer
Module not found: Package path ./client is not exported from package error in Next auth
I tried to import
Provider
from the client and got this error
./pages/_app.js:2:0
Module not found: Package path ./client is not exported from package C:\Users\Asram EFT\Desktop\threejs-journey Lessons\Nextjs\fbclone-yt\node_modules\next-auth (see…

Azr.em
- 83
- 1
- 11
0
votes
1 answer
Unable to set session details while using credentials with custom token in NextAuth js
I am attempting to implement NextAuth.js in my NextJs app. There is a backend ExpressJs server responsible for implementing JWT Tokens and login details. I am following the official documentation (credentials sign in, jwt callback, session callback)…

pr4n
- 2,918
- 3
- 30
- 42
0
votes
1 answer
NEXT-AUTH - 500 Internal Server Error on /api/auth/signin, cannot access login page on live site
Ive been looking all over but i havent found anything relevant to my case.
im using nextauth on an next.js app for a simple login to manage content on the site.
evet since ive configured the nginx in my ubuntu 20.04 droplet on digital ocean, im…

David Nelband
- 417
- 1
- 4
- 17
0
votes
0 answers
Next auth : Session doesn't seem to update until a whole server-side page reload happens
I use next auth version 4 with next for client side authentication, I want a modal to display when the session is expired.
The value open (In the code ) always remains false even though the session was expired.
Here's my code :
const…

sokida
- 433
- 1
- 8
- 21
0
votes
2 answers
Next Auth CLIENT_FETCH_ERROR when deploying on vercel
I am trying to deploy a NextJs application to vercel, I am using next auth to authenticate via discord.
Locally it is working fine. The right callback URL's are all configured and NEXT_AUTH_URL is configured too.
export default NextAuth({
providers:…

J.B.
- 51
- 1
- 2
- 10
0
votes
1 answer
Call to /api/auth/session gives ECONNRESET - next-auth
I'm relatively new to next-auth & next in general. We have an application which we are transitioning to using AWS Cognito for authentication. It's a server side rendered application & I know this as under pages/_app.tsx is getInitialProps(). The…

wmash
- 4,032
- 3
- 31
- 69
0
votes
1 answer
Next-auth, MongoDB and AWS SES not working properly
I want to use next-auth with the email provider (passwordless signin) for a login page, and use MongoDB to store a new user etc. As for the email sending I would like to use AWS SES.
Current status:
I have implemented a boilerplate next app with…
user16351905
0
votes
1 answer
Next-Auth: Make Session Available In _app.js Without getServerSideProps
When using React.js and React-Auth, calling server-side functions like getServerSideProps will prevent you from exporting your project via next export. This is the content of my pages/_app.js, I copied the structure from the docs…

Kruspe
- 626
- 6
- 19
0
votes
1 answer
Image in NextJS does not allow template literals inside src when deploying on vercel
I have a userdropdown menu that I want to show the picture of the client that authenticated. I use nextAuth to authenticate. I can see the picture of the user and name of the user turns well with useSession().
I show the picture of the user in…

sayinmehmet47
- 490
- 5
- 21
0
votes
0 answers
Next Auth Discord
I am facing this error for many days after there next-auth new v4 update i even created a issue they just handle some bunch of docs, even using those nothing help. I am trying to make a discord oauth with next-auth. Whenever i try to do so it throws…

Aria fantom
- 1
- 1
0
votes
3 answers
import { Provider as AuthProvider } from "next-auth/client" doesnt work in _app.js
I am watching this video: https://www.youtube.com/watch?v=uGhekiErHso&lc=UgxYeO4X60SBiKSTYyp4AaABAg.9WmWFhab7UX9WmzTutWP_V, at the 39 min of the video you can see the authentication part in _app.js.
When I import { Provider as AuthProvider } from…

S.Zahran
- 11
- 1
- 2
0
votes
0 answers
getProviders method returning null on production
I have an app that works properly on development environment, but once I deploy, the getProviders method which is called at server side returns NULL to my component. If I visit https://MY_URL/api/auth/providers, I get the JSON I'm supposed to…

Gustavo Farias
- 393
- 5
- 15
0
votes
1 answer
Next-auth credential signup page
So I am trying to integrate Next-Auth into my project to create a members area plus staff portal for our site.
I have noticed that I can do a credential that would allow me to use the username and passwords already in the database - however I can't…

Russell Harrower
- 778
- 1
- 6
- 20
0
votes
1 answer
What is causing this export error when trying to use a NextAuth.js Provider with Next.js?
I'm creating my first project in React/Next.js, using NextAuth.js for Auth-N. I'm loosely following along with the Getting Started guide on the NextAuth website, and I've created a [...nextauth].js page that contains the following code:
import…

Tyson
- 1,685
- 15
- 36
0
votes
1 answer
Deploying next-auth app to Vercel creates error in credentials provider
I am trying to deploy my next app to vercel. I am using next-auth for authentication with credentials and an api that returns a JWT. On localhost it works ok, but when I put it on vercel, and try to login, nothing happens. However when I view the…

Youzef
- 616
- 1
- 6
- 23