(reason: string)
| 101 | export const REGISTRATION_PATH = '/register'; |
| 102 | |
| 103 | export const logout = async (reason: string): Promise<void> => { |
| 104 | await dispatchLogout(reason); |
| 105 | const params = getQueryParams(); |
| 106 | if (params.redirect_uri) { |
| 107 | window.location.replace(params.redirect_uri); |
| 108 | } else if (window.location.pathname === REGISTRATION_PATH) { |
| 109 | window.location.replace(process.env.NEXT_PUBLIC_WEBAPP_URL); |
| 110 | } |
| 111 | |
| 112 | if (isExtension) { |
| 113 | window.location.reload(); |
| 114 | } else { |
| 115 | window.location.replace('/onboarding'); |
| 116 | } |
| 117 | }; |
| 118 | |
| 119 | export function checkIfGdprCovered(geo?: Boot['geo']): boolean { |
| 120 | return ( |
no test coverage detected