IdTokenResult class Null safety

Interface representing ID token result obtained from getIdTokenResult. It contains the ID token JWT string and other helper properties for getting different data associated with the token as well as all the decoded payload claims.

Note that these claims are not to be trusted as they are parsed client side. Only server side verification can guarantee the integrity of the token claims.

Constructors

IdTokenResult(Map<String, dynamic> _data)

Properties

authTime DateTime?
The authentication time formatted as UTC string. This is the time the user authenticated (signed in) and not the time the token was refreshed.
read-only
claims Map<String, dynamic>?
The entire payload claims of the ID token including the standard reserved claims as well as the custom claims.
read-only
expirationTime DateTime?
The time when the ID token expires.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
issuedAtTime DateTime?
The time when ID token was issued.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
signInProvider String?
The sign-in provider through which the ID token was obtained (anonymous, custom, phone, password, etc). Note, this does not map to provider IDs.
read-only
token String?
The Firebase Auth ID token JWT string.
read-only

Methods

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

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited