signOutService function Providers
- @Riverpod(keepAlive: true)
- Ref ref
Implementation
@Riverpod(keepAlive: true)
SignOutService signOutService(Ref ref) => SignOutService(
// Read lazily: building FcmService throws on a native build where
// Firebase is not configured, and that must not stop the sign-out.
forgetDevice: () => ref.read(fcmServiceProvider).deleteToken(),
endSession: () => Supabase.instance.client.auth.signOut(),
);