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

Function isSocialCallbackPath

apps/cloud/src/edge/marketing.ts:85–89  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

83const SOCIAL_CALLBACK_PREFIX = "/api/auth/callback/";
84
85const isSocialCallbackPath = (pathname: string): boolean => {
86 if (!pathname.startsWith(SOCIAL_CALLBACK_PREFIX)) return false;
87 const provider = pathname.slice(SOCIAL_CALLBACK_PREFIX.length);
88 return provider.length > 0 && !provider.includes("/");
89};
90
91/** Whether a pathname is a sign-up entry point that redirects to v2. */
92export const isSignUpPath = (pathname: string): boolean => SIGN_UP_PATHS.has(pathname);

Callers 1

isV2PathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected