signOutService function Providers

  1. @Riverpod(keepAlive: true)
SignOutService signOutService(
  1. 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(),
);