FirebaseAuth Framework Reference

AuthDataResult

class AuthDataResult : 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.

  • The signed in user.

    Declaration

    Swift

    var user: FIRUser { get }
  • If available contains the additional IdP specific information about signed in user.

    Declaration

    Swift

    var additionalUserInfo: FIRAdditionalUserInfo? { get }
  • 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

    Swift

    var credential: FIRAuthCredential? { get }