Help Me make a custom login Page
I'm using Credential Provider for nextAuth I want to customise my login page
4 Replies
Pages | NextAuth.js
NextAuth.js automatically creates simple, unbranded authentication pages for handling Sign in, Sign out, Email Verification and displaying error messages.
How would u send user back to the path, user come from. Lets say user u login from cart how to send him back to the cart?
when redirecting from the sign in page, add the old path, (/cart) as example, as a query param
after successfully signin, just send back to the old path