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

Function isBareOrigin

packages/core/sdk/src/migration-spec.ts:1263–1263  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1261 * authorize endpoint: redirecting there signs the user in and strands them
1262 * (observed in prod with migrated Microsoft clients). */
1263const isBareOrigin = (url: string): boolean => /^https?:\/\/[^/]+\/?$/.test(url);
1264
1265const authorizationUrlFromProviderState = (
1266 ps: V1ProviderState | null,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected