AuthenticationRepository<T extends EquatableUser> class
abstract
AuthenticationRepository needs to be extended and passed into AuthApp
It is vividly recommended to extend this class as a Singleton as this would allow for access patterns like the following:
final String uid = MyExtendedAuthenticationRepository.instance.currentUser.id
Caching should also be taken care of in the repository
Constructors
Properties
Methods
-
deleteAccount(
) → Future< void> -
isUserNew(
T user) → bool -
login(
{required EasyAuthProvider provider}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
performSafeAuth(
Future< void> future, AuthAction action) → Future<AuthException?> - Only override if you know what you're doing and want custom error handling or the error handling here does not fit your use case
-
register(
{required T user, required String password}) → Future< void> -
signOut(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited