UserInfo.fromResponse constructor
UserInfo.fromResponse(
- GoogleCloudIdentitytoolkitV1ProviderUserInfo response
Implementation
UserInfo.fromResponse(
auth1.GoogleCloudIdentitytoolkitV1ProviderUserInfo response,
) : uid = response.rawId,
displayName = response.displayName,
email = response.email,
photoUrl = response.photoUrl,
providerId = response.providerId,
phoneNumber = response.phoneNumber {
if (response.rawId == null || response.providerId == null) {
throw FirebaseAuthAdminException(
AuthClientErrorCode.internalError,
);
}
}