Ali Raza Khalid
Ali Raza Khalid
In your auth.js file you have to extend the error class like this ```javascript import NextAuth, { CredentialsSignin } from "next-auth" import Credentials from "next-auth/providers/credentials" class InvalidLoginError extends CredentialsSignin {...
> In your auth.js file you have to extend the error class like this > > import NextAuth, { CredentialsSignin } from "next-auth" > import Credentials from "next-auth/providers/credentials" > >...
I have been facing a same issue. After email is verified I want to update the session because it holds the isEmail verified property. The v5 docs allow you to...
import NextAuth from "next-auth"; import GitHub from "next-auth/providers/github"; import Google from "next-auth/providers/google"; import CredentialsProvider from "next-auth/providers/credentials"; import { SignInWithEmailAndPassword, oauthSignIn, } from "@/actions/user/user.actions"; const providers = [ Google, GitHub, CredentialsProvider({...
> Is this being worked on? Very strange behavior, `trigger` is always undefined, except on sign in. that might be how u are sending the data from the client side....
If you are simply trying to make the middleware work then you will have to do some custom work. I created middleware in my application in two ways you can...