NEXT_PUBLIC_KINDE_AUTH_API_PATH and kinde middleware

I learned from the kinde ai that NEXT_PUBLIC_KINDE_AUTH_API_PATH helps kinde work in situations where I use basePath in my next.js project. However, it seems that if I use the kinde middleware approach, that doesn't work, as the redirect after the login does not make use of that variable. Suggestions on how to find a workaround for that?
2 Replies
Zaki
Zaki20h ago
Hi, Thanks for reaching out! Could you try using the KINDE_AUTH_API_PATH variable instead? Let me know if you need further clarification or assistance—I’d be happy to help!
arundquist
arundquistOP15h ago
I tried it with that and I have the same problem. That variable does let me do page level authentication with the correct redirect (just as the NEXT_PUBLIC_KINDE_AUTH_API_PATH variable does, so thanks for that), but the middleware approach still doesn't include the basePath.

Did you find this page helpful?