Structure
FirebaseAuthIdentityToken
struct FirebaseAuthIdentityToken
Topics
Structures
FirebaseAuthIdentityToken.FirebaseAdditional Firebase-specific claims
Initializers
init(from:)Creates a new instance by decoding from the given decoder.init(issuer:subject:audience:issuedAt:expires:authTime:userID:email:emailVerified:phoneNumber:name:picture:firebase:)
Instance Properties
audienceThe audience that this ID token is intended for. It must be your Firebase project ID, the unique identifier for your Firebase project, which can be found in the URL of that project’s console.authTimeAuthentication time. It must be in the past. The time when the user authenticated.emailThe user’s email address.emailVerifiedTrueif the user’s e-mail address has been verified; otherwisefalse.expiresExpiration time. It must be in the future. The time is measured in seconds since the UNIX epoch.firebaseAdditional Firebase-specific claimsissuedAtIssued-at time. It must be in the past. The time is measured in seconds since the UNIX epoch.issuerIssuer. It must be “https://securetoken.google.com/”, where is the same project ID used for audnameThe user’s full name, in a displayable form.phoneNumberThe user’s phone number.pictureThe URL of the user’s profile picture.subjectSubject. It must be a non-empty string and must be the uid of the user or device.userID
Instance Methods
verify(using:)Verifies that the payload’s claims are correct or throws an error.
Relationships
Conforms To
JWTPayloadSwift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype