fteam_authentication_core

Install

Add in your pubspec.yaml

dependencies:
  fteam_authentication_core:

Dependency

You need implement a AuthDatasource and register with method IAtecAuth.registerAuthDatasource.

class MyDatasource implements AuthDatasource {
    ...
}

...

IAtecAuth.registerAuthDatasource(MyDatasource());

OR use fteam_authentication_firebase package;

Usage

import 'package:fteam_authentication_core/fteam_authentication_core.dart'

...

final result = await FTeamAuth.login(ProviderLogin.google);
result.fold((error){
    dispachError(error);
}, (user){
    print(user);
});


MethodsReturn SuccessReturn Error
loginLoggedUserAuthFailure
logoutUnitLogoutFailure
getLoggedUserLoggedUserAuthFailure
deleteAccountUnitAuthFailure
linkAccountLoggedUserAuthFailure
sendEmalVerificationUnitAuthFailure
signupWithEmailLoggedUserAuthFailure

Libraries

fteam_authentication_core