MCPcopy Index your code
hub / github.com/simstudioai/sim / getAuthPath

Function getAuthPath

apps/sim/app/api/auth/[...all]/route.ts:13–16  ·  view source on GitHub ↗
(request: NextRequest)

Source from the content-addressed store, hash-verified

11const SAFE_ORGANIZATION_POST_PATHS = new Set(['organization/check-slug', 'organization/set-active'])
12
13function getAuthPath(request: NextRequest): string {
14 const pathname = request.nextUrl?.pathname ?? new URL(request.url).pathname
15 return pathname.replace('/api/auth/', '')
16}
17
18function isBlockedOrganizationMutationPath(path: string): boolean {
19 return path.startsWith('organization/') && !SAFE_ORGANIZATION_POST_PATHS.has(path)

Callers 1

route.tsFile · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected