next-auth Questions

2

Solved

If a user is signed into the app between app upgrades, then I want to sign out the user the next time they visit. I am pulling the version in from the package.json and storing it in the jwt/session...
Cayenne asked 4/3, 2022 at 18:38

3

My web app is using: NextJS NextAuth.js Apollo Server I have a NextAuth set up in my app, and I am able to log in just fine. The problem is coming from trying to get access to the user's session ...
Dressler asked 19/1, 2021 at 22:33

1

Solved

I got an error using Next Auth with Prisma Adapter on create-t3-app. I successfully added data on my Planetscale database. I got this error when I try to log in using Next Auth Google Provider. The...
Hellraiser asked 11/4, 2023 at 21:51

7

Solved

Hi I am new to nextjs and for authentication I am using next-auth. The users can log in using Google and when they are logged in and authenticated I want to get the access_token given by provider i...
Kluge asked 6/9, 2021 at 2:12

0

I am currently working on a project that uses Next.js with next-auth for the frontend and Python FastAPI for the backend. I have been using the Google provider for authentication, and I plan to add...
Arrival asked 4/4, 2023 at 13:3

1

Solved

I am working on a website that allows Student and Faculty Login. So far, only the student login part generates a JWT and I am trying to reach the protected route /student. You can check out the cod...

1

Solved

I'm using: nextJS: 13.1.6 nextAuth 4.19.2 I'm using the new app/ directory, which is still in Beta. My problem is that I'm trying to retrieve information about the user in a page, then do logic ...
Boxwood asked 22/3, 2023 at 22:44

2

I'm new to next-auth. When I click on the sign in button it takes me to the google sign in page. It shows the list of accounts. After clicking one of the accounts, it shows the image and email. Thi...
Fancier asked 22/11, 2022 at 19:18

2

Solved

Why would one use iron-session instead of next-auth? Doesn't next-auth do normal username/password log-in in addition to Social (while iron-session only does the former)?
Bawdyhouse asked 3/6, 2022 at 2:58

2

Solved

I recently found and started testing create-t3-app as a new base for NextJS projects because it takes care of a lot of boilerplate setup for things like TypeScript, trpc, prisma, and next-auth so i...
Siphonophore asked 20/10, 2022 at 23:48

1

I have a NestJS backend that exposes the following API: @Post('sign-in-with-google-account') async signInWithGoogleAccount( @Body body: { idToken: string }, @Res({ passthrough: true }) respons...
Waverly asked 27/1, 2023 at 12:45

4

With NextAuth.js, how can I update a value inside the session object without signing out and in again? For example, once a user signs in, I am using the URL stored in the session to display the ava...
Pestiferous asked 14/12, 2020 at 11:3

2

I'm writing a Next.js project, and implementing authentication using GitHub and next-auth. In the examples of next-auth, there's a call to useSession(), which returns two objects: session and loadi...
Gurdwara asked 8/7, 2020 at 23:46

2

I am starting to do e2e tests with playwright. Most of the application requires to be authenticated. Automating this with a username/password mechanism is quite easy. The problem is that the app I ...
Gabby asked 2/11, 2021 at 9:2

1

I want to update the user's data but after updating the user's data how to make also the change appear in session? [...nextauth].js callbacks: { jwt: ({ token, user }) => { if (user) { token...
Mite asked 27/3, 2022 at 18:46

0

I deployed a Nextjs(v13) app with AWS Amplify and using NextAuth(v4.17.0). I'm using CredentialsProvider with a custom server. All works great in development environment, but in production the sess...
Skittle asked 8/12, 2022 at 5:17

1

I use next-auth.js library to create authentication system for Next.js my application. Everything works fine on my local computer, but after deploying website to Vercel, my sign in function doesn't...
Hypothesize asked 13/11, 2020 at 17:44

1

Solved

Faced this issue when I was using login functionality developed by my teammate in a group project and apparently I am the only one facing this issue. npm version: 8.19.3 node version: 16.17.0 packa...
Iraq asked 6/11, 2022 at 20:49

3

I am converting my CRA app to Nextjs and running into some issues with my Axios interceptor pattern. It works, but I am forced to create and pass an Axios instance to every api call. Is there a bet...
Hendeca asked 20/2, 2022 at 15:21

2

According to Next Auth docs, I can pass additional parameters to the /authorize endpoint through the third argument of signIn(). They show two examples: signIn("identity-server4", null, {...
Sitarski asked 20/9, 2022 at 23:54

3

I try to get credentials auth with next-auth, but I have no experience to use it and whatever I do, i get following message: [next-auth][error][callback_credentials_jwt_error] Signin in with crede...
Deliberate asked 29/10, 2020 at 8:0

1

Using NextAuth with google provider, how can i log completely out of the session and ensure that upon signing-in again, i am brought to the account selection page instead of getting logged in strai...
Bolin asked 7/10, 2022 at 4:53

3

I'm working on a Facebook clone code along. I am pretty new to Next.js it throws an error at me which I'm not sure if it is standard or some bug in my code. https://next-auth.js.org/warnings#no_sec...
Matrilateral asked 27/2, 2022 at 6:25

2

Solved

We are doing OTP auth in our website. So in order to get authorized, a visitor enter his phone number in input and we send him a OPT number and he again enters the sent opt, then if it matches, we ...
Celia asked 19/2, 2022 at 13:6

1

Solved

I am trying to develop a flexible authentication system on Next.js that can use a Spring (Java) API backend. The endpoints function perfectly using Postman. The API also provides its own JWT. I wan...
Heisler asked 10/9, 2022 at 18:21

© 2022 - 2024 — McMap. All rights reserved.