FirebaseAuth Framework Reference

FIRAuthDataResult


@interface FIRAuthDataResult : NSObject

Helper object that contains the result of a successful sign-in, link and reauthenticate action. It contains references to a User instance and a AdditionalUserInfo instance.

  • This class should not be initialized manually. AuthDataResult instance is returned as part of AuthDataResultCallback.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • The signed in user.

    Declaration

    Objective-C

    @property (nonatomic, readonly) FIRUser *_Nonnull user;
  • If available contains the additional IdP specific information about signed in user.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) FIRAdditionalUserInfo *additionalUserInfo;
  • This property will be non-nil after a successful headful-lite sign-in via signIn(with:uiDelegate:completion:). May be used to obtain the accessToken and/or IDToken pertaining to a recently signed-in user.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) FIRAuthCredential *credential;