FirebaseAuthToken class
Firebase Auth Token class for verifying id tokens by providing the unique project id
Constructors
- FirebaseAuthToken({required String projectId, int timeDiscrepancyInSeconds = 60})
- Create instance for firebase id token check by projectId
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- projectId → String
-
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeDiscrepancyInSeconds → int
-
It can be that the clock on your server has time discrepancy
So you can define here what the max value can be (default: 60)
final
Methods
-
getDataFromToken(
String token) → Future< Map< String, dynamic> > - Verify and extract the data within the id token
-
getUserFromToken(
String token) → Future< AuthUser> - Verify and extract the user object within the id token
-
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