PowerSyncBackendConnector
Implement this to connect an app backend.
The connector is responsible for:
Creating credentials for connecting to the PowerSync service.
Applying local changes against the backend application server.
Functions
Link copied to clipboard
Get credentials for PowerSync.
Link copied to clipboard
Get credentials current cached, or fetch new credentials if none are available.
Link copied to clipboard
Immediately invalidate credentials.
Link copied to clipboard
Fetch a new set of credentials and cache it.
Link copied to clipboard
If no other task is currently fetching credentials, calls fetchCredentials again and caches the result internally.
Link copied to clipboard
Upload local changes to the app backend.