IdpProvider class sealed
Encapsulates IDP-Providers to log into firebase with.
The IdpProvider class provides various factory constructors for the supported login providers used by FirebaseAuth.signInWithIdp(). The currently supported providers are:
- google.com: IdpProvider.google()
- facebook.com: IdpProvider.facebook()
- twitter.com: IdpProvider.twitter()
If you want to use a provider other then the ones specified above, you can use IdpProvider.custom() to create a custom provider instance.
- Annotations
-
- @freezed
Constructors
-
IdpProvider.custom({required String providerId, @Default(<String, dynamic>{}) Map<
String, dynamic> parameters}) -
Create an IDP-Instance for any provider not explicitly supported.
constfactory
- IdpProvider.facebook(String accessToken)
-
Create an IDP-Instance for facebook.com.
constfactory
- IdpProvider.google(String idToken)
-
Create an IDP-Instance for google.com.
constfactory
- IdpProvider.twitter({required String accessToken, required String oauthTokenSecret})
-
Create an IDP-Instance for twitter.com.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Returns the identifier of this provider.
no setter
- postBody → String
-
Generates a HTTP-POST body to be used by the REST-API.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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