getUser method
The user with uid. Throws a FirebaseAuthAdminException user-not-found if there is none.
Implementation
Future<AdminUser> getUser(String uid) async {
_checkOpen();
_checkUid(uid);
final AdminUser? user = await _lookup(<String, Object?>{
'localId': <String>[uid],
});
if (user == null) {
throw const FirebaseAuthAdminException(
code: 'user-not-found',
message:
'There is no user record corresponding to the provided identifier.',
serverCode: 'USER_NOT_FOUND',
);
}
return user;
}