diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/cloud.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/cloud.tsx b/src/utils/cloud.tsx index 5f853bd..db48aa7 100644 --- a/src/utils/cloud.tsx +++ b/src/utils/cloud.tsx @@ -77,14 +77,14 @@ export async function authorizeCloud() { permissions={0n} clientId={clientId} cancelCompletesFlow={false} - callback={async (callbackUrl: string) => { - if (!callbackUrl) { + callback={async ({ location }: any) => { + if (!location) { Settings.cloud.authenticated = false; return; } try { - const res = await fetch(callbackUrl, { + const res = await fetch(location, { headers: new Headers({ Accept: "application/json" }) }); const { secret } = await res.json(); |