Skip to content

Commit

Permalink
Bugfix: No sync after token expires due to missing refresh token in O…
Browse files Browse the repository at this point in the history
…TP flow.

Bug was introduced in dexie-cloud-addon@4.0.1-beta.
Many thanks to @dusty-phillips for finding the bug and pin-pointing the commit that introduced it.
  • Loading branch information
dfahlander committed Feb 14, 2024
1 parent 26782eb commit 6ce6b04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dexie-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dexie-cloud-addon",
"version": "4.0.1-beta.56",
"version": "4.0.1-beta.57",
"description": "Dexie addon that syncs with to Dexie Cloud",
"main": "dist/umd/dexie-cloud-addon.js",
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function otpFetchTokenCallback(db: DexieCloudDB): FetchTokenCallback {
...tokenRequest,
otp: otp || '',
otp_id: response.otp_id,
public_key
} satisfies OTPTokenRequest2;

let res2 = await fetch(`${url}/token`, {
Expand Down

0 comments on commit 6ce6b04

Please sign in to comment.