FirebaseAuth Framework Reference

AuthTokenResult

@available(iOS13,tvOS13,macOS10.15,watchOS7,*)@objc(FIRAuthTokenResult)openclassAuthTokenResult:NSObject
extensionAuthTokenResult:NSSecureCoding

A data class containing the ID token JWT string and other properties associated with thetoken including the decoded payload claims.

  • Stores the JWT string of the ID token.

    Declaration

    Swift

    @objcopenvartoken:String
  • Stores the ID token’s expiration date.

    Declaration

    Swift

    @objcopenvarexpirationDate:Date
  • Stores the ID token’s authentication date.

    This is the date the user was signed in and NOT the date the token was refreshed.

    Declaration

    Swift

    @objcopenvarauthDate:Date
  • Stores the date that the ID token was issued.

    This is the date last refreshed and NOT the last authentication date.

    Declaration

    Swift

    @objcopenvarissuedAtDate:Date
  • Stores sign-in provider through which the token was obtained.

    Declaration

    Swift

    @objcopenvarsignInProvider:String
  • Stores sign-in second factor through which the token was obtained.

    Declaration

    Swift

    @objcopenvarsignInSecondFactor:String
  • Stores the entire payload of claims found on the ID token.

    This includes the standardreserved claims as well as custom claims set by the developer via the Admin SDK.

    Declaration

    Swift

    @objcopenvarclaims:[String:Any]
  • Undocumented

    Declaration

    Swift

    publicstaticletsupportsSecureCoding:Bool
  • Undocumented

    Declaration

    Swift

    publicfuncencode(withcoder:NSCoder)
  • Undocumented

    Declaration

    Swift

    publicrequiredconvenienceinit?(coder:NSCoder)

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-11 UTC.