KindeK
Kinde3y ago
1 reply
TJ

Kinde TypeScript type in Next.js middleware

Hi,
With Next.js 14 and TypeScript, may I know how can I specify the type for req so that it recognizes req.kindeAuth,
export default withAuth(async function middleware(req) {
  console.log("look at me", req.kindeAuth);
});

Is there a type provided by Kinde?
Was this page helpful?