@@ -34,11 +34,9 @@ class BackendConnector extends PowerSyncBackendConnector {
3434
3535 BackendConnector (this .db);
3636
37- /// Get a Supabase token to authenticate against the PowerSync instance.
37+ /// Get a token to authenticate against the PowerSync instance.
3838 @override
3939 Future <PowerSyncCredentials ?> fetchCredentials () async {
40- // Wait for pending session refresh if any
41- // await _refreshFuture;
4240
4341 final user = FirebaseAuth .instance.currentUser;
4442 if (user == null ) {
@@ -80,7 +78,6 @@ class BackendConnector extends PowerSyncBackendConnector {
8078 @override
8179 void invalidateCredentials () {
8280 // Trigger a session refresh if auth fails on PowerSync.
83- // Generally, sessions should be refreshed automatically by Supabase.
8481 // However, in some cases it can be a while before the session refresh is
8582 // retried. We attempt to trigger the refresh as soon as we get an auth
8683 // failure on PowerSync.
@@ -90,10 +87,6 @@ class BackendConnector extends PowerSyncBackendConnector {
9087 //
9188 // Timeout the refresh call to avoid waiting for long retries,
9289 // and ignore any errors. Errors will surface as expired tokens.
93- // _refreshFuture = Supabase.instance.client.auth
94- // .refreshSession()
95- // .timeout(const Duration(seconds: 5))
96- // .then((response) => null, onError: (error) => null);
9790 }
9891
9992 // Upload pending changes to Node.js Backend.
0 commit comments