DecodedIdToken class

Interface representing a decoded Firebase ID token, returned from the _BaseAuth.verifyIdToken method.

Firebase ID tokens are OpenID Connect spec-compliant JSON Web Tokens (JWTs). See the ID Token section of the OpenID Connect spec for more information about the specific properties below.

Constructors

DecodedIdToken({required String aud, required DateTime authTime, required String? email, required bool? emailVerified, required int exp, required TokenProvider firebase, required int iat, required String iss, required String? phoneNumber, required String? picture, required String sub, required String uid})
DecodedIdToken.fromMap(Map<String, Object?> map)
factory

Properties

aud String
The audience for which this token is intended.
getter/setter pair
authTime DateTime
Time, in seconds since the Unix epoch, when the end-user authentication occurred.
getter/setter pair
email String?
The email of the user to whom the ID token belongs, if available.
getter/setter pair
emailVerified bool?
Whether or not the email of the user to whom the ID token belongs is verified, provided the user has an email.
getter/setter pair
exp int
The ID token's expiration time, in seconds since the Unix epoch. That is, the time at which this ID token expires and should no longer be considered valid.
getter/setter pair
firebase TokenProvider
Information about the sign in event, including which sign in provider was used and provider-specific identity details.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
iat int
The ID token's issued-at time, in seconds since the Unix epoch. That is, the time at which this ID token was issued and should start to be considered valid.
getter/setter pair
iss String
The issuer identifier for the issuer of the response.
getter/setter pair
phoneNumber String?
The phone number of the user to whom the ID token belongs, if available.
getter/setter pair
picture String?
The photo URL for the user to whom the ID token belongs, if available.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sub String
The uid corresponding to the user who the ID token belonged to.
getter/setter pair
uid String
The uid corresponding to the user who the ID token belonged to.
getter/setter pair

Methods

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

Operators

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