FIRUserInfo

@protocol FIRUserInfo <NSObject>

Represents user data returned from an identity provider.

  • The provider identifier.

    Declaration

    Swift

    var providerID: String { get }

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull providerID;
  • uid

    The provider’s user ID for the user.

    Declaration

    Swift

    var uid: String { get }

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull uid;
  • The name of the user.

    Declaration

    Swift

    var displayName: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *displayName;
  • The URL of the user’s profile photo.

    Declaration

    Swift

    var photoURL: URL? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSURL *photoURL;
  • The user’s email address.

    Declaration

    Swift

    var email: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *email;
  • A phone number associated with the user. This property is only available for users authenticated via phone number auth.

    Declaration

    Swift

    var phoneNumber: String? { get }

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *phoneNumber;