AuthenticationRepository class Null safety
Repository which manages user authentication.
Constructors
- AuthenticationRepository({required StorageProvider storageProvider, HttpProvider? httpProvider})
Properties
-
currentUser
→ Future<
User> -
Returns the current cached user.
Defaults to User.empty if there is no cached user.
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
-
status
→ Stream<
AuthenticationStatus> -
Stream of
AuthenticationStatus
which will emit a new value when the authentication status changes.read-only
Methods
-
dispose(
) → void -
logOut(
) → Future< void> - Signs out the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
signIn(
{required String code, required String password}) → Future< void> -
Signs in with the provided
code
andpassword
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited