SignInResponse class

Meta-Class for multiple API-Endpoints

Implementers
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
const
factory
SignInResponse.custom({required String idToken, required String refreshToken, required String expiresIn})
https://firebase.google.com/docs/reference/rest/auth#section-verify-custom-token
const
factory
SignInResponse.fromJson(Map<String, dynamic> json)
JSON constructor
factory
SignInResponse.idp({required String federatedId, required String providerId, required String localId, @Default(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(false) bool needConfirmation})
https://firebase.google.com/docs/reference/rest/auth#section-sign-in-with-oauth-credential
const
factory
SignInResponse.linkIdp({required String federatedId, required String providerId, required String localId, @Default(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
const
factory
SignInResponse.password({required String idToken, String? email, required String refreshToken, required String expiresIn, required String localId, @Default(false) bool registered})
Meta-Class for multiple API-Endpoints
const
factory

Properties

copyWith → $SignInResponseCopyWith<SignInResponse>
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

map<TResult extends Object?>({required TResult anonymous(AnonymousSignInResponse value), required TResult idp(IdpSignInResponse value), required TResult password(PasswordSignInResponse value), required TResult custom(CustomTokenSignInResponse value), required TResult linkIdp(LinkIdpResponse value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? anonymous(AnonymousSignInResponse value)?, TResult? idp(IdpSignInResponse value)?, TResult? password(PasswordSignInResponse value)?, TResult? custom(CustomTokenSignInResponse value)?, TResult? linkIdp(LinkIdpResponse value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult anonymous(AnonymousSignInResponse value)?, TResult idp(IdpSignInResponse value)?, TResult password(PasswordSignInResponse value)?, TResult custom(CustomTokenSignInResponse value)?, TResult linkIdp(LinkIdpResponse value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult anonymous(String idToken, String? email, String refreshToken, String expiresIn, String localId)?, TResult idp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn, bool needConfirmation)?, TResult password(String idToken, String? email, String refreshToken, String expiresIn, String localId, bool registered)?, TResult custom(String idToken, String refreshToken, String expiresIn)?, TResult linkIdp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult anonymous(String idToken, String? email, String refreshToken, String expiresIn, String localId), required TResult idp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn, bool needConfirmation), required TResult password(String idToken, String? email, String refreshToken, String expiresIn, String localId, bool registered), required TResult custom(String idToken, String refreshToken, String expiresIn), required TResult linkIdp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? anonymous(String idToken, String? email, String refreshToken, String expiresIn, String localId)?, TResult? idp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn, bool needConfirmation)?, TResult? password(String idToken, String? email, String refreshToken, String expiresIn, String localId, bool registered)?, TResult? custom(String idToken, String refreshToken, String expiresIn)?, TResult? linkIdp(String federatedId, String providerId, String localId, bool emailVerified, String? email, String? oauthIdToken, String? oauthAccessToken, String? oauthTokenSecret, String? rawUserInfo, String? firstName, String? lastName, String? fullName, String? displayName, Uri? photoUrl, String idToken, String refreshToken, String expiresIn)?}) → TResult?
inherited

Operators

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