Credential class
Interface that represents the credentials returned by an auth provider. Implementations specify the details about each auth provider's credential requirements.
認証プロバイダーによって返される資格情報を表すインターフェイス。 実装では、各認証プロバイダーの資格情報要件の詳細を指定します。
- Available Extensions
Constructors
- Credential({required String providerId, String signInMethod = "oauth", int? token, String? accessToken, String? secret, String? idToken})
-
Interface that represents the credentials returned by an auth provider.
Implementations specify the details about each auth provider's credential
requirements.
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
- idToken → String?
-
Id token, used by Apple and others.
final
- 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
- secret → String?
-
Shared Secret.
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 - token → int?
-
A token used to identify the AuthCredential on native platforms.
final
Methods
-
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