MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / pathPart

Function pathPart

apps/cloud/src/auth/return-to.ts:14–14  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

12// ---------------------------------------------------------------------------
13
14const pathPart = (path: string): string => path.split(/[?#]/, 1)[0] ?? "";
15
16const isOAuthCallbackReturnTo = (path: string): boolean => pathPart(path) === "/api/oauth/callback";
17

Callers 1

isOAuthCallbackReturnToFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected