VerifiedIdToken class final

An ID token that FirebaseAuthAdmin.verifyIdToken checked: signed by Google (or by the emulator in emulator mode), for this project, not expired.

Annotations
  • @immutable

Constructors

VerifiedIdToken(Map<String, Object?> claims)
Creates a token from its decoded claims. The package creates them; you need this only for tests.

Properties

authTime → DateTime
When the user signed in (auth_time).
no setter
claims → Map<String, Object?>
Every claim of the token: the standard ones (sub, aud, iat, ...), firebase, and the custom claims of the user and of the custom token it signed in with.
final
email → String?
The email address of the user, or null.
no setter
expiresAt → DateTime
When the token expires (exp).
no setter
hashCode → int
The hash code for this object.
no setterinherited
issuedAt → DateTime
When the token was issued (iat).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signInProvider → String?
How the user signed in (firebase.sign_in_provider): custom, password, anonymous, ...
no setter
tenantId → String?
The tenant of the user (firebase.tenant), or null.
no setter
uid → String
The uid of the user (sub).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited