Evan
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
I am using middleware...
My middleware.ts file:
import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware";
export default withAuth({
loginPage: "/api/auth/login",
isReturnToCurrentPage: true,
});
export const config = {
matcher: ["/dashboard/:path*"],
};
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Here's something maybe...
When I change KINDE_POST_LOGIN_REDIRECT_URL to https://bizlists.vercel.app/noauthroute we jump out of the loop. Basically everything works for the production login flow up until the point where I'm invoking getKindeServerSession() a subsequent time when I redirect to a url that's going to need user information, which triggers another hit to Kinde which redirects to a url that needs user information which triggers a hit to Kinde which...
Feels like there's an obvious fix here lol, but I'm just a front end idiot.
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Still getting state mismatches i think, even with dynamic redirects
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
And I have tried these boilerplate fixes as best I can
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
95 replies
KKinde
•Created by M on 1/4/2025 in #💻┃support
Constantly getting ERR_TOO_MANY_REDIRECTS in production
Hi all, I Am getting pretty much identical issues from following a similar tutorial from the same person. https://www.youtube.com/watch?v=_ypZyGeJox8
95 replies