AuthCredential class

Interface that represents the credentials returned by an auth provider. Implementations specify the details about each auth provider's credential requirements.

Implementers

Constructors

AuthCredential({required String providerId, required String signInMethod, int? token, String? accessToken})
const

Properties

accessToken String?
The OAuth access token associated with the credential if it belongs to an OAuth provider, such as facebook.com, twitter.com, etc. Using the OAuth access token, you can call the provider's API.
final
hashCode int
The hash code for this object.
no setterinherited
providerId String
The authentication provider ID for the credential. For example, 'facebook.com', or 'google.com'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signInMethod String
The authentication sign in method for the credential. For example, 'password', or 'emailLink'. This corresponds to the sign-in method identifier returned in fetchSignInMethodsForEmail.
final
token int?
A token used to identify the AuthCredential on native platforms.
final

Methods

asMap() Map<String, dynamic>
Returns the current instance as a serialized Map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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