next-auth Questions
1
Solved
I was looking at the answer from this question, but it's still unclear to me what is the difference. And now, they have added a new method getServerSession(). Please, clarify what is the difference...
3
I am trying to have my own text and style there. In the documentation (https://next-auth.js.org/configuration/options#pages) it says we can add a custom page by adding verifyRequest: '/auth/verify-...
4
I have implemented a next-auth authentication system for my Next.js app. In the providers, I have chosen credentials because I have a node.js backend server.
The problem that I am facing is the exp...
2
Solved
ENVIROMENT
NextJS: 12.2.2
NextAuth: 4.10.3 (latest)
Provider: Credentials
Browser: Google Chrome
Node: LTS
ISSUE
Hello everyone
I'm using NextAuth for authentication with credentials provide...
Haro asked 10/8, 2022 at 6:26
4
Solved
This error has been occurring whenever I am trying to render my signin page using nextAuth.js
signin.js
import { getProviders, signIn as SignIntoProvider} from 'next-auth/react'
// Browser... ...
3
I have a credential based auth flow in NextJS and a dashboard page I have also created custom AccessDenied component in case it not logged used would end up on the dashboard route, hence I did not ...
Teaching asked 6/8, 2022 at 11:39
5
Solved
I am using nextAuth for authentication in my project and I would like to restrict certain pages for the clients that are not logged in.
I tried calling the useSession() hook in the getServerSidePro...
Service asked 26/7, 2021 at 9:43
4
I'm trying to implement an auth flow in my project using Next.js + NextAuth.js + Prisma.
And I'm using GitHub Provider. It works perfectly fine on my local machine, I can sign in and redirect back ...
Nakada asked 16/5, 2022 at 7:17
1
I'm using T3 Stack and next auth to authenticate with google, currently using mysql DB,
but while trying to logging in I'm getting
To confirm your identity, sign in with the same account you used o...
2
Solved
I'm using [email protected] with [email protected] and Typescript. Whenever I use the signIn() function, it goes through sign in as normal, but then print the following line to the server...
Barbiebarbieri asked 24/6, 2023 at 20:59
5
Solved
I am trying to use Credentials Provider with NextJs ("next": "^12.0.7") and NextAuth ("next-auth": "^4.1.2"). I am writing this in typescript, and facing iss...
Dr asked 4/2, 2022 at 17:11
3
Solved
The current code I have is below, which follows the tutorials for Next.js per page getLayout (see TypeScript section) and NextAuth with TypeScript (or should I say, tries to follow...):
import &quo...
Mer asked 4/10, 2022 at 3:5
3
Solved
How the registration is handled with a custom credential provider ( email + password)?
Currently my [...nextauth].js looks like this:
import NextAuth from 'next-auth'
import Providers from 'next-au...
Neogene asked 30/6, 2021 at 5:23
1
I have been trying to make this work for a while and just can't seem to find any solution in the docs for the problem I have. The situation is this, I want a user to sign in using nextauth.js, and ...
Drought asked 26/6, 2023 at 11:45
3
Solved
I am trying to integrate authentication with next-auth library in an Application. I have been following the official tutorial given here https://github.com/nextauthjs/next-auth-example/. The proble...
2
Solved
Is it possible to allow next-auth to return errors from an API and pass them through from the client-side?
As an example, the API is returning specifically if the user's email or password is incorr...
Chucklehead asked 28/1, 2022 at 16:54
2
Solved
We have an existing application use NextAuth to communicate with Okta. This is all working fine, we've just added an API which needs the Okta Access Token, we've used the JWT callback in NextAuth t...
1
When i try to login using Talend API Tester, getting this into terminal:
API resolved without sending a response for /api/auth/callback/credentials, this may result in stalled requests.
Besides, ...
Acclimatize asked 10/7, 2021 at 7:56
2
Solved
I am using NextAuth for my NextJS application. When using NextAuth, it redirects to its own sign-in page when signing in or we can add our own custom sign-in page but what I want to do is sign-in w...
2
Solved
I have a Next app. I use app folder and Next Auth library. So that each page has access to the session, I wrapped the entire application in a SessionProvider. But since it's useContext under the ho...
Axolotl asked 12/6, 2023 at 9:40
4
I am using getServerSideProps function in next.js with Next-Auth and I'm getting a TypeError:
TypeError: Cannot destructure property 'nextauth' of 'req.query' as it is undefined.
When I checked us...
Phenacite asked 3/2, 2023 at 9:20
3
Solved
I'm developing some protected pages using Next.js, NextAuth.js and Typescript. The following code from my _app.tsx was taken from the NextAuth.js official website but that includes a property auth ...
Magnolia asked 9/1, 2022 at 19:12
5
Solved
Using next.js auth (next auth) I'm creating CredentialsProvider, trying to connect it to django backend. All is working good except refresh token strategy: after obtaining new access token, access ...
4
Currently, the […nextauth].ts file in the pages/api/auth directory is working properly. However, I want to migrate to Next.js 13.2’s app directory API route but can’t find a way to migrate my nextA...
3
I am trying to deploy my application.
When I try to build on my local machine it works fine, but when the build runs on GitHub it is not working.
For information, I am using yarn and yarn build to ...
Monostich asked 13/12, 2022 at 13:9
© 2022 - 2024 — McMap. All rights reserved.