redirecting to custom error page if authentication fails or canceled
Unanswered
Aditya Kirad posted this in #help-forum
hey folks I'm using
to
NextAuth for authentication in my next-app and I'm using discord as auth provider I want user to redirected to a custom error page if oauth is cancelled so I added. pages: {
error: "/oauth/error
} to
authOption but when I cancel the oauth the user is get redirected to /api/auth/signin?error=Callback instead