Kinde · Function
withAuth
withAuth wraps a Next.js proxy to protect routes with Kinde authentication. It supports public paths, custom login behavior, return redirects, and authorization checks.
Last updated
Syntax
withAuth(callback, options?)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Next.js App Routerproxy.tsmiddleware.tsKindeProviderhandleAuthpublicPathsisAuthorized