GetTokenResult class

Result object that contains a Firebase Auth ID Token.

Constructors

GetTokenResult(String token)
factory

Properties

authTimestamp DateTime
Returns the authentication timestamp. This is the time the user authenticated (signed in) and not the time the token was refreshed.
no setter
claims Map<String, dynamic>
Returns the entire payload claims of the ID token including the standard reserved claims as well as the custom claims (set by developer via Admin SDK). Developers should verify the ID token and parse claims from its payload on the backend and never trust this value on the client. Returns an empty map if no claims are present.
final
expirationTimestamp DateTime
Returns the time at which this ID token will expire
no setter
extraClaims Map<String, dynamic>
no setter
hashCode int
The hash code for this object.
no setteroverride
issuedAtTimestamp DateTime
Returns the issued at timestamp. This is the time the ID token was last refreshed and not the authentication timestamp.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signInProvider String
Returns the sign-in provider through which the ID token was obtained (anonymous, custom, phone, password, etc). Note, this does not map to provider IDs. For example, anonymous and custom authentications are not considered providers. We chose the name here to map the name used in the ID token.
no setter
token String
Firebase Auth ID Token. Useful for authenticating calls against your own backend. Verify the integrity and validity of the token in your server either by using our server SDKs or following the documentation.
final

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.
override