Skip to content

Commit

Permalink
cloud: handle case where cloud token comes populated from desktop app…
Browse files Browse the repository at this point in the history
… with no server id.
  • Loading branch information
koush committed Jun 20, 2024
1 parent 20101cd commit d2b39e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/cloud/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"@types/nat-upnp": "^1.1.5",
"@types/node": "^20.14.6"
},
"version": "0.2.14"
"version": "0.2.15"
}
3 changes: 2 additions & 1 deletion plugins/cloud/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,9 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
throw new Error('@scrypted/cloud is not logged in.');
const q = qsstringify({
scope: local.pathname,
serverId: this.storageSettings.values.serverId,
ttl,
})
});
const scope = await httpFetch({
url: `https://${this.getHostname()}/_punch/scope?${q}`,
headers: {
Expand Down

0 comments on commit d2b39e8

Please sign in to comment.