OAuthCredential class Null safety

A generic OAuth credential.

This class is extended by other OAuth based credentials, or can be returned when generating credentials from 3rd party OAuth providers.

Inheritance
Implementers

Constructors

OAuthCredential({required String providerId, required String signInMethod, String? accessToken, String? idToken, String? secret, String? rawNonce})
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.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
idToken String?
The OAuth ID token associated with the credential if it belongs to an OIDC provider, such as google.com.
final
providerId String
The authentication provider ID for the credential. For example, 'facebook.com', or 'google.com'.
final, inherited
rawNonce String?
The raw nonce associated with the ID token. It is required when an ID token with a nonce field is provided. The SHA-256 hash of the raw nonce must match the nonce field in the ID token.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secret String?
The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0 provider, such as twitter.com.
final
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, inherited
token int?
A token used to identify the AuthCredential on native platforms.
final, inherited

Methods

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

Operators

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