blob: d7e440aaeee08b501255aea180428cdc3806bae1 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of firebase_auth;
/// Represents user data returned from an identity provider.
class UserInfo {
UserInfo._(this._data, this._app);
final FirebaseApp _app;
final Map<dynamic, dynamic> _data;
/// The provider identifier.
String get providerId => _data['providerId'];
/// The provider’s user ID for the user.
String get uid => _data['uid'];
/// The name of the user.
String get displayName => _data['displayName'];
/// The URL of the user’s profile photo.
String get photoUrl => _data['photoUrl'];
/// The user’s email address.
String get email => _data['email'];
/// The user's phone number.
String get phoneNumber => _data['phoneNumber'];
@override
String toString() {
return '$runtimeType($_data)';
}
}