AuthClient<T extends Token> class
abstract
Client that handles the actual logging in / out and token refresh.
This is meant to be a stateless class that just converts authentication calls using an AuthUser to appropriate log in/out HTTP calls.
Implementations should also handle opening the browser for authentication via a website if needed.
- Implementers
- Annotations
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ensureUpdatedToken(
AuthUser< T> user) → Future<AuthUser< T> ?> - Ensure that the given user has an updated token. Must return a user with a new token if the current user's token has expired.
-
logIn(
{String? email}) → Future< AuthUser< T> ?> - Log in to a service and return authenticated user data
-
logOut(
AuthUser< T> user) → Future<void> - Log the given user out of a service
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited