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

Function isV2OAuthCallback

apps/cloud/src/edge/marketing.ts:308–309  ·  view source on GitHub ↗
(url: URL, prefix: string)

Source from the content-addressed store, hash-verified

306/** Whether a connected-account callback carries v2's state prefix. Reads the
307 * query only: a callback without `state` in its query stays with v1. */
308const isV2OAuthCallback = (url: URL, prefix: string): boolean =>
309 url.searchParams.get("state")?.startsWith(prefix) === true;
310
311/** Whether a pathname is below v2's analytics proxy root, or exactly v2's
312 * error tunnel. */

Callers 1

v2EdgeResponseFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected