You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
endpoint:'[Your PowerSync instance URL or self-hosted endpoint]',
172
+
// Use a development token (see Authentication Setup https://docs.powersync.com/installation/authentication-setup/development-tokens) to get up and running quickly
173
+
token:'An authentication token'
174
+
};
175
+
}
164
176
165
-
constructor() {
166
-
// Setup a connection to your server for uploads
167
-
this.serverConnectionClient=TODO;
168
-
}
169
-
170
-
asyncfetchCredentials() {
171
-
// Implement fetchCredentials to obtain a JWT from your authentication service.
172
-
// See https://docs.powersync.com/installation/authentication-setup
173
-
// If you're using Supabase or Firebase, you can re-use the JWT from those clients, see
endpoint:'[Your PowerSync instance URL or self-hosted endpoint]',
178
-
// Use a development token (see Authentication Setup https://docs.powersync.com/installation/authentication-setup/development-tokens) to get up and running quickly
179
-
token:'An authentication token'
180
-
};
181
-
}
182
-
183
-
asyncuploadData(database) {
177
+
asyncuploadData(database) {
184
178
// Implement uploadData to send local changes to your backend service.
185
179
// You can omit this method if you only want to sync data from the database to the client
186
180
187
181
// See example implementation here: https://docs.powersync.com/client-sdk-references/javascript-web#3-integrate-with-your-backend
182
+
}
188
183
}
189
184
```
190
185
@@ -232,14 +227,14 @@ The [watch](https://powersync-ja.github.io/powersync-js/web-sdk/classes/PowerSyn
0 commit comments