getUser method

Future<UserRecord> getUser(
  1. String uid
)
inherited

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

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

Returns a Future fulfilled with the use data corresponding to the provided uid.

Implementation

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