Skip to content

Commit 0068fc5

Browse files
committed
Changeset entries.
1 parent 88ee962 commit 0068fc5

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.changeset/cool-yaks-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/web': minor
3+
---
4+
5+
To support the upstream credentials management changes from `@powersync/common`, the sync worker now communicates credentials invalidation to tabs.

.changeset/shiny-rules-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@powersync/common': minor
3+
---
4+
5+
Improved credentials management and error handling. Credentials are invalidated when they expire or become invalid. The frequency of credential fetching has been reduced as a result of this work.

packages/common/src/client/sync/stream/AbstractStreamingSyncImplementation.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,10 @@ The next upload iteration will be delayed.`);
685685
this.logger.debug('Token expiring; reconnect');
686686
this.options.remote.invalidateCredentials();
687687

688+
/**
689+
* For a rare case where the backend connector does not update the token
690+
* (uses the same one), this should have some delay.
691+
*/
688692
await this.delayRetry();
689693
return;
690694
}

0 commit comments

Comments
 (0)