deleteAuthEffect top-level property

Effect deleteAuthEffect
final

Implementation

final deleteAuthEffect = when<DeleteAuthRequested>((event) async {
  final response =
      await withRetry(withDeleteLog(withAuth(delete)))(endpoint("auth"));

  switch (response.state) {
    case ResterResponseState.success:
      dispatch(const DeleteAuthResolved());
      break;
    case ResterResponseState.failure:
      dispatch(DeleteAuthRejected(response.message));
      break;
  }
});