Switch the pasted-token field from DRF tokens to refresh tokens

This commit is contained in:
Roland Geider
2026-05-15 16:28:57 +02:00
parent 42752de182
commit 87a40fd4e6
76 changed files with 1191 additions and 339 deletions

View File

@@ -64,7 +64,7 @@ class DjangoConnector extends PowerSyncBackendConnector {
/// permanent-failure op would re-pop the dialog on every sync tick
/// (PowerSync keeps re-driving `uploadData` until the transaction
/// is completed, and our `transaction.complete()` only fires once
/// the loop finishes — so we'd see the dialog at every iteration).
/// the loop finishes, so we'd see the dialog at every iteration).
/// Resets on app restart.
final Set<String> _reportedFailedOps = {};
@@ -222,7 +222,7 @@ class DjangoConnector extends PowerSyncBackendConnector {
try {
decoded = json.decode(response.body);
} on FormatException {
// Non-JSON response on a 200 — uncommon but harmless to ignore.
// Non-JSON response on a 200, uncommon but harmless to ignore.
return;
}
if (decoded is! Map<String, dynamic> || !decoded.containsKey('error')) {