Welcome to the Kinde community

Home
Members
Murtazak
M
Murtazak
Offline, last seen 2 months ago
Joined September 23, 2024
I'm working on a site with Kinde authentication applied to the inner pages of the /experience route. While everything works as expected locally, the live site at https://www.setoo.co/experience is showing a 500 error when accessing these inner pages.

Here’s the middleware code used to protect the inner pages:
Plain Text
 import { withAuth } from "@kinde-oss/kinde-auth-nextjs/middleware";

export default withAuth({
    loginPage: '/api/auth/login',  // Redirect to login page if not authenticated
    isReturnToCurrentPage: true,
});

export const config = {
    matcher: ["/experience/:path*"], // Protect inner pages under /experience
};

I’m unsure why this error only occurs on the live site and would appreciate any guidance on resolving this issue.
I have attached a video of the issue for better understanding
https://jam.dev/c/3163f5e3-b557-406b-bcda-8ef770ff9d80
2 comments
I
Hi I am new to kinde I have a login and a signup form I want user to login via signup only I dont want login for that I have use RegisterLink component but is there any way to remove the "Already a account login " text from signup screen refer the below image
https://jam.dev/c/b3286b5c-bb6c-45cc-bba6-bbf9ce8d5071
8 comments
M
D