We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7749b98 commit 7b1f7cfCopy full SHA for 7b1f7cf
packages/supabase_flutter/lib/src/supabase_auth.dart
@@ -119,7 +119,9 @@ class SupabaseAuth with WidgetsBindingObserver {
119
case AppLifecycleState.detached:
120
case AppLifecycleState.inactive:
121
case AppLifecycleState.paused:
122
- Supabase.instance.client.auth.stopAutoRefresh();
+ if (Supabase.instance.client.realtime.getChannels().isEmpty) {
123
+ Supabase.instance.client.auth.stopAutoRefresh();
124
+ }
125
default:
126
}
127
0 commit comments