SignInResponse class sealed
Meta-Class for multiple API-Endpoints
- Annotations
-
- @freezed
Constructors
- SignInResponse.anonymous({required String idToken, String? email, required String refreshToken, required String expiresIn, required String localId})
-
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-anonymously
constfactory
- SignInResponse.custom({required String idToken, required String refreshToken, required String expiresIn})
-
https://firebase.google.com/docs/reference/rest/auth#section-verify-custom-token
constfactory
-
SignInResponse.fromJson(Map<
String, dynamic> json) -
JSON constructor
factory
- SignInResponse.idp({required String federatedId, required String providerId, required String localId, @Default.new(false) bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, required String idToken, required String refreshToken, required String expiresIn, @Default.new(false) bool needConfirmation})
-
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-with-oauth-credential
constfactory
- SignInResponse.linkIdp({required String federatedId, required String providerId, required String localId, @Default.new(false) bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, required String idToken, required String refreshToken, required String expiresIn})
-
https://firebase.google.com/docs/reference/rest/auth#section-link-with-oauth-credential
constfactory
- SignInResponse.password({required String idToken, String? email, required String refreshToken, required String expiresIn, required String localId, @Default.new(false) bool registered})
-
Meta-Class for multiple API-Endpoints
constfactory
Properties
-
copyWith
→ $SignInResponseCopyWith<
SignInResponse> -
Create a copy of SignInResponse
with the given fields replaced by the non-null parameter values.
no setterinherited
- expiresIn → String
-
The number of seconds in which the ID token expires.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- idToken → String
-
A Firebase Auth ID token for the newly created user.
no setterinherited
- localId → String
-
The uid of the newly created user.
no setter
- refreshToken → String
-
A Firebase Auth refresh token for the newly created user.
no setterinherited
- 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
-
toJson(
) → Map< String, dynamic> -
Serializes this SignInResponse to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited