Custom Sign in Page not working properly #4450
-
I am unable to get the sign in page working properly.... I have looked at all of the examples that I can find online as well as the stack overflow examples, but it is still not working. When I navigate to the /api/auth/signin endpoint with a custom page, it goes into an endless loop and never renders the signin page. My signin file is
and the /pages/api/auth/[...nextAuth].ts file is
The sign out functionality works just fine.... but I cannot get sign in to work regardless of what I do.... Any ideas? using 4.3.1. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ahh - I had an issue with my _app.tsx file and some middleware that I had setup to handle authenticating Pages |
Beta Was this translation helpful? Give feedback.
Ahh - I had an issue with my _app.tsx file and some middleware that I had setup to handle authenticating Pages
when I removed that code, the signIn functions as anticipated!