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

Function loginPath

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

Source from the content-addressed store, hash-verified

26
27/** The /login URL that comes back to `returnTo` ("/" needs no parameter). */
28export const loginPath = (returnTo: string): string =>
29 returnTo === "/" ? "/login" : `/login?returnTo=${encodeURIComponent(returnTo)}`;

Callers 4

start.tsFile · 0.90
ssr-gate.tsFile · 0.90
return-to.test.tsFile · 0.90
AuthGateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected