Middleware causing infinite redirects

I've a different url for auth (backend) and frontend, here's the middleware i'm using, it's causing a request loop, gotta use only a layout auth
Next.js integration | Better Auth
Integrate Better Auth with Next.js.
1 Reply

Did you find this page helpful?