(fullPath: string)
| 56 | } |
| 57 | |
| 58 | function 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 | |
| 66 | export function buildSigninRedirectQuery(url: URL): Record<string, string> { |
| 67 | const query: Record<string, string> = {}; |
no test coverage detected