Rep.
Rep.
Explore posts from servers
KKinde
Created by Rep. on 12/2/2023 in #💻┃support
Are you required to be authenticated to be able to check feature flags?
Trying out the feature flag functionality. While I'm not logged in/authenticated - the flags always return the defaultValue set. I recall mentioning that the flag values are bundled into the JWT or token? So is feature flagging only applicable to authenticated users & not more generally for flagging public pages?
4 replies
KKinde
Created by Rep. on 12/1/2023 in #💻┃support
Clicking login takes me to API route and not login page (Next 14)
Trying to get up and running with Next14 and App Router. I've got env setup and the following in src/app/api/auth/[kindeauth]/route.ts
import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server";
import { type NextApiRequest } from "next";

export async function GET(
request: NextApiRequest,
{ params }: { params: { kindeAuth: string } },
) {
const endpoint = params.kindeAuth;
return handleAuth(request, endpoint);
}
import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server";
import { type NextApiRequest } from "next";

export async function GET(
request: NextApiRequest,
{ params }: { params: { kindeAuth: string } },
) {
const endpoint = params.kindeAuth;
return handleAuth(request, endpoint);
}
When I click my login component it navigates to http://localhost:3000/api/auth/login any ideas?
21 replies