MCPcopy Create free account
hub / github.com/clerk/javascript / createDefaultAfterAuth

Function createDefaultAfterAuth

packages/nextjs/src/server/authMiddleware.ts:236–261  ·  view source on GitHub ↗
(
  isPublicRoute: ReturnType<typeof createRouteMatcher>,
  isApiRoute: ReturnType<typeof createApiRoutes>,
  options: { signInUrl: string; signUpUrl: string; publishableKey: string; secretKey: string },
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

authMiddlewareFunction · 0.85

Calls 4

createRedirectFunction · 0.85
redirectToSignInMethod · 0.80

Tested by

no test coverage detected