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

Function isSafeReturnTo

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

Source from the content-addressed store, hash-verified

34
35/** Whether a value parses as a same-origin landing path. */
36export const isSafeReturnTo = (path: string): boolean => safeReturnTo(path) !== null;
37
38/** The /login URL that comes back to `returnTo` ("/" needs no parameter). */
39export const loginPath = (returnTo: string): string =>

Callers 1

return-to.test.tsFile · 0.90

Calls 1

safeReturnToFunction · 0.70

Tested by

no test coverage detected