getUserByEmail method

Future<UserRecord> getUserByEmail(
  1. String email
)
inherited

Gets the user data for the user corresponding to a given email.

See https://firebase.google.com/docs/auth/admin/manage-users#retrieve_user_data for code samples and detailed documentation.

Receives the email corresponding to the user whose data to fetch.

Returns a promise fulfilled with the user data corresponding to the provided email.

Implementation

Future<UserRecord> getUserByEmail(String email) async {
  final response = await _authRequestHandler.getAccountInfoByEmail(email);
  // Returns the user record populated with server response.
  return UserRecord.fromResponse(response);
}