© 2026 Hedgehog Software, LLC
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); }
http://localhost:3000/api/auth/login