()
| 113 | } |
| 114 | |
| 115 | const clearAuthToken = () => { |
| 116 | const params = new URLSearchParams(location.search) |
| 117 | if (!params.has("auth_token")) return |
| 118 | params.delete("auth_token") |
| 119 | history.replaceState(null, "", location.pathname + (params.size ? `?${params}` : "") + location.hash) |
| 120 | } |
| 121 | |
| 122 | const platform: Platform = { |
| 123 | platform: "web", |