A full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router and the Vercel Domains API.
5.73k
stars
767
forks
source link
Errors are not showing on login page because of redirects in middleware #388
Open
strzeluk opened 9 months ago
This example is so buggy...
I don't know if someone notice but toasts with errors will never show on login page because of permanent redirection in middleware, for example:
localhost:3000/login?error=something will be redirected to localhost:3000/login
Errors from login are displayed based on error in url searchParams. So you have to change some code in middleware.ts file: