AuthenticationSocialServiceImpl class

Inheritance
  • Object
  • RepoServiceBaseImpl
  • AuthenticationServiceImpl
  • AuthenticationSocialServiceImpl
Implemented types

Constructors

AuthenticationSocialServiceImpl({required IHttpClient httpClient, required SharedPreferences sharedPreferences, Logger? logger, required AuthenticationFireSocialConfig config, required GoogleSignInFacade googleSignInFacade, required AppleSignInFacade appleSignInFacade, required FacebookSignInFacade facebookSignInFacade, required AnonymousFacade anonymouslySignInFacade})

Properties

anonymouslySignInFacade AnonymousFacade
final
appleSignInFacade AppleSignInFacade
final
client → IHttpClient?
finalinherited
config AuthenticationFireSocialConfig
final
facebookSignInFacade FacebookSignInFacade
final
googleSignInFacade GoogleSignInFacade
final
hashCode int
The hash code for this object.
no setterinherited
httpClient → IHttpClient
finalinherited
logger ↔ Logger
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedPreferences → SharedPreferences
finalinherited

Methods

authenticateAnonymously() Future<Either<Failure, AuthenticationData>>
override
authenticateWithApple() Future<Either<Failure, AuthenticationDataModel>>
override
authenticateWithFacebook() Future<Either<Failure, AuthenticationDataModel>>
override
authenticateWithGoogle() Future<Either<Failure, AuthenticationDataModel>>
override
deleteAccount(String userId) Future<Either<Failure, User?>>
override
fetchAuthUserData() Future<Either<Failure, User>>
inherited
getAuthenticatedSession() Future<Either<Failure, AuthenticationData?>>
inherited
getStoredDeviceInfo([bool generate = true]) Future<AuthDeviceInfo?>
inherited
handleDefault<T>(Future<Either<Failure, T>> callback(Left<Failure, T> left(Failure failure), Right<Failure, T> right(T result)), {Either<Failure, T>? onError(Object error, Left<Failure, T> left(Failure failure), Right<Failure, T> right(T response), StackTrace stackTrace)?}) Future<Either<Failure, T>>
Provides you with an easy way to handle common service logic This helper will help you with some boilerplate needed when implementing handling of async service logic following our architecture
inherited
handleHttpBaseRequest<T>(BaseRequest request, {required DataOrFailureHandleResponse<T> onResponse, DataOrFailureHandleException<T>? onError, List<int> successStatuses = const [200, 201, 202, 203, 204], bool debugRequestBody = true, bool overrideTextContentTypeHeader = true}) Future<Either<Failure, T>>
Provides you with an easy way to handle a BaseRequest This helper provides you more control over the type of request being send it will help you with some boilerplate needed when implementing handling http request following our architecture It also provides early access to the request details before performing the request so it be better for logging request its commonly the return type of a HttpClient in most of its methods (get, post, patch, put, etc)
inherited
handleHttpRequestResponse<T>(Future<Response> futureResponse, {required DataOrFailureHandleResponse<T> onResponse, DataOrFailureHandleException<T>? onError, List<int> successStatuses = const [200, 201, 202, 203, 204], bool debugRequestBody = true}) Future<Either<Failure, T>>
Provides you with an easy way to handle common Http API request This helper will help you with some boilerplate needed when implementing handling http request following our architecture futureResponse its commonly the return type of a HttpClient in most of its methods (get, post, patch, put, etc)
inherited
loginWithCredentials(String username, String password) Future<Either<Failure, AuthenticationData>>
inherited
logout() Future<Either<Failure, Unit>>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reauthenticateProvider() Future<Either<Failure, SocialProviderResponse>>
override
refreshSession() Future<Either<Failure, AuthenticationData>>
inherited
setupFieldsUser({required AuthSignUpPayload payload, required AuthenticationData authData}) Future<Either<Failure, AuthenticationData>>
override
signOut() Future<Either<Failure, Unit>>
override
signupWithCredentials(AuthSignUpPayload payload) Future<Either<Failure, AuthenticationData?>>
inherited
storeAuthDataSession(AuthenticationData authData) Future<Either<Failure, Unit>>
inherited
toString() String
A string representation of this object.
inherited
wrapAndHandleHttpBaseRequest<T>(FutureOr<BaseRequest> requestFn(), {required DataOrFailureHandleResponse<T> onResponse, DataOrFailureHandleException<T>? onError, List<int> successStatuses = const [200, 201, 202, 203, 204], bool debugRequestBody = true, bool overrideTextContentTypeHeader = true}) Future<Either<Failure, T>>
Provides you with an easy way to handle a BaseRequest This helper provides you more control over the type of request being send it will help you with some boilerplate needed when implementing handling http request following our architecture It also provides early access to the request details before performing the request so it be better for logging request its commonly the return type of a HttpClient in most of its methods (get, post, patch, put, etc)
inherited
wrapAndHandleHttpRequestResponse<T>(Future<Response> futureResponse(), {required DataOrFailureHandleResponse<T> onResponse, DataOrFailureHandleException<T>? onError, List<int> successStatuses = const [200, 201, 202, 203, 204], bool debugRequestBody = true}) Future<Either<Failure, T>>
Provides you with an easy way to handle common Http API request This helper will help you with some boilerplate needed when implementing handling http request following our architecture futureResponse its commonly the return type of a HttpClient in most of its methods (get, post, patch, put, etc)
inherited

Operators

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

Constants

kSocialAuthMethodKey → const String