MCPcopy Create free account
hub / github.com/bytebase/bytebase / stripSigninQueryParams

Function stripSigninQueryParams

frontend/src/react/router/guard.ts:58–64  ·  view source on GitHub ↗
(fullPath: string)

Source from the content-addressed store, hash-verified

56}
57
58function stripSigninQueryParams(fullPath: string): string {
59 const url = new URL(fullPath, window.location.origin);
60 for (const param of SIGNIN_QUERY_PARAMS) {
61 url.searchParams.delete(param);
62 }
63 return url.pathname + url.search + url.hash;
64}
65
66export function buildSigninRedirectQuery(url: URL): Record<string, string> {
67 const query: Record<string, string> = {};

Callers 1

buildSigninRedirectQueryFunction · 0.85

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected