Structure
FirebaseAuthIdentityToken
struct FirebaseAuthIdentityToken
Topics
Structures
struct FirebaseAdditional Firebase-specific claims
Initializers
init(from: any Decoder) throwsCreates a new instance by decoding from the given decoder.init(issuer: IssuerClaim, subject: SubjectClaim, audience: AudienceClaim, issuedAt: IssuedAtClaim, expires: ExpirationClaim, authTime: Date?, userID: String, email: String?, emailVerified: Bool?, phoneNumber: String?, name: String?, picture: String?, firebase: FirebaseAuthIdentityToken.Firebase?)
Instance Properties
let audience: AudienceClaimThe 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.let authTime: Date?Authentication time. It must be in the past. The time when the user authenticated.let email: String?The user’s email address.let emailVerified: Bool?Trueif the user’s e-mail address has been verified; otherwisefalse.let expires: ExpirationClaimExpiration time. It must be in the future. The time is measured in seconds since the UNIX epoch.let firebase: FirebaseAuthIdentityToken.Firebase?Additional Firebase-specific claimslet issuedAt: IssuedAtClaimIssued-at time. It must be in the past. The time is measured in seconds since the UNIX epoch.let issuer: IssuerClaimIssuer. It must be “https://securetoken.google.com/”, where is the same project ID used for audlet name: String?The user’s full name, in a displayable form.let phoneNumber: String?The user’s phone number.let picture: String?The URL of the user’s profile picture.let subject: SubjectClaimSubject. It must be a non-empty string and must be the uid of the user or device.let userID: String
Instance Methods
func verify(using: some JWTAlgorithm) throwsVerifies that the payload’s claims are correct or throws an error.
Relationships
Conforms To
JWTPayloadSwift.DecodableSwift.EncodableSwift.SendableSwift.SendableMetatype