currentUserProfile function

  1. @riverpod
Future<UserData> currentUserProfile(
  1. Ref ref
)

Current user profile provider

Implementation

@riverpod
Future<UserData> currentUserProfile(Ref ref) async {
  final client = ref.read(prodobitClientProvider);
  return client.user.getCurrentProfile();
}