authState function

  1. @Riverpod(keepAlive: true)
Stream<AuthState> authState(
  1. Ref<Object?> ref
)

Streams auth state changes from Supabase.

Implementation

@Riverpod(keepAlive: true)
Stream<AuthState> authState(Ref ref) {
  return Supabase.instance.client.auth.onAuthStateChange;
}