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

Function isOAuthCallbackReturnTo

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

Source from the content-addressed store, hash-verified

14const pathPart = (path: string): string => path.split(/[?#]/, 1)[0] ?? "";
15
16const isOAuthCallbackReturnTo = (path: string): boolean => pathPart(path) === "/api/oauth/callback";
17
18export const isSafeReturnTo = (path: string): boolean =>
19 path.startsWith("/") &&

Callers 1

isSafeReturnToFunction · 0.70

Calls 1

pathPartFunction · 0.70

Tested by

no test coverage detected