Category "next-auth"

Next auth getSession with typescript

I am using next-auth getSession in API routes like this const mySession = await getSession({ req }); I am certain that the type of the mySession is this type S

Nextauth Twitter - Function not found with Netlify dev

I couldn't find any reference to this and finally managed to solve problem. When using Nextauth with Twitter (and probably other providers) you get a 'Function

next-auth JWEDecryptionFailed

I am using this code to be able to use the credentials next-auth provider along with cognito as oauth serviice: this to allow email and password auth. I am runn

why does next auth say that client_id is required, even though in discord providers, there clearly is a client_id

When I try to use next auth to create a discord oauth client and I click sign in, I get this error: https://next-auth.js.org/errors#get_authorization_url_error

Next Auth: Deployed code redirecting me to localhost on login

As the title suggests - I have a nextjs application that works absolutely fine locally - However, now I've deployed it to a dev environment, something really we

useSession not returning data as expected

UPDATE It works now. All I had to change is session: { jwt: true, strategy: "jwt" } I am new in next-auth. I was practicing next-auth sign-in with credenti

Storing Additional Information via Next-Auth's JWT Callback or Session callback? (Saving Patreon Tier in Next-Auth)

I am trying to use next-auth with the patreon api. Logging in & out works fine, but I now want to also save the users tier somewhere - the question is where

How to resolve 'getUserByAccount is not a function' in next-auth?

I've updated Nextjs to it's newest version and also updated next-auth and the prisma adapter as specified by the docs. However, when I try to authenticate in th

next-auth only valid absolute URLs can be requested

I updated [email protected] to [email protected] for okta signin(reactjs). After that I am getting the following errors: [next-auth][error][SIGNIN_OAUTH_ERROR] htt

Unsupported certificate purpose - NextAuth - SSL in Localhost - Node server

I followed this tutorial for setting up the https in local development machine: https://dev.to/nakib/using-https-on-next-js-local-development-server-bcd And her

SSL Certificate is unable to be verified when sending request to the same machine

I have a remote Ubuntu machine running a node server with next.js and using next-auth for authentication. Everything works fine with HTTP locally. Configuration

NextJS and NextAuth session user object getting lost due to [...nextauth.ts] getting triggered to be recompiled

I am learning NextJS and NextAuth and have implemented a Credentials sign in with my own login page and it is working where the session object contains my user

Next-Auth getSession is returning null in my development environment

I'm using the following code in one of my pages: export async function getServerSideProps(context) { const session = await getSession(context) return {

Next Auth V4 (With Redux Toolkit): Pass in Redux Store Data to Next Auth while performing sign In

I want to trigger the Sign In callback in Next Auth along with the redux store data. How can I access the store within my nextAuth sign In the callback, here's

How to use next-auth using ldap and prisma

i am using next-auth with ldap to authenticate user name and password. i am able to log/authenticate the user using username and password. but when i can't crea

How to solve Vercel 500 Internal Server Error?

I have created a project that uses MongoDB to store user info and Next-Auth to authenticate users. On local host this is all working seamlessly. Previously I ha

NextAuth authentication not working on Deployment on Vercel (Working on localhost)

Used credentials for authentication with nextauth. My code is not working on vercel deployment but working on localhost. I used the basic cresdentials for authe

Next-auth sign In working locally but not on vercel. Error- CLIENT_FETCH_ERROR

I've used next-auth with google signIn in my next application. I've set the environment variables as well as the auth file under api as import GoogleProvider fr

TypeError: Cannot convert undefined or null to object in NextAuth

NextAuth.js automatically creates simple, unbranded authentication pages for handling Sign in, Sign out.So I created it like the document suggest.I created in s

Nextauth token keeps on nesting

I updated with v4 beta with next-auth. But the token keeps on nesting on refresh, as in token converts to token.token to token.token.token .... on each refresh