FirebaseIdpUtils class
Utility functions for the Firebase identity provider.
These functions can be used to compose custom authentication and administration flows if needed.
But for most cases, the methods exposed by FirebaseIdp and FirebaseIdpAdmin should be sufficient.
Constructors
- FirebaseIdpUtils({required FirebaseIdpConfig config, required AuthUsers authUsers})
- Creates a new instance of FirebaseIdpUtils.
Properties
- config → FirebaseIdpConfig
-
Configuration for the Firebase identity provider.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
Session session, {required String idToken, required Transaction? transaction}) → Future< FirebaseAuthSuccess> - Authenticates a user using an ID token.
-
fetchAccountDetails(
Session session, {required String idToken}) → Future< FirebaseAccountDetails> -
Returns the account details for the given
idToken. -
linkFirebaseAuthentication(
Session session, {required UuidValue authUserId, required FirebaseAccountDetails accountDetails, Transaction? transaction}) → Future< FirebaseAccount> -
Adds a Firebase authentication to the given
authUserId. -
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