OAuthProvider class
OAuth auth provider.
See: firebase.google.com/docs/reference/js/firebase.auth.GoogleAuthProvider.
- Inheritance
-
- Object
- AuthProvider<
OAuthProviderJsImpl> - OAuthProvider
Constructors
- OAuthProvider(String providerId)
-
Creates a new OAuthProvider.
factory
- OAuthProvider.fromJsObject(OAuthProviderJsImpl jsObject)
-
Creates a new OAuthProvider from a
jsObject
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsObject → OAuthProviderJsImpl
-
JS object.
finalinherited
- providerId → String
-
Provider id.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addScope(
String scope) → OAuthProvider - Adds additional OAuth 2.0 scopes that you want to request from the authentication provider.
-
credential(
[String? idToken, String? accessToken]) → OAuthCredential -
Creates a credential for Google.
At least one of
idToken
andaccessToken
is required. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCustomParameters(
Map< String, dynamic> customOAuthParameters) → OAuthProvider - Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in operations. For a detailed list, check the reserved required OAuth 2.0 parameters such as client_id, redirect_uri, scope, response_type and state are not allowed and will be ignored.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited