aboutsummaryrefslogtreecommitdiff
path: root/src/utils/cloud.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/cloud.tsx')
-rw-r--r--src/utils/cloud.tsx6
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();