FakeAuthClient class

Fake auth client implementation that can be controlled using the various controller fields.

Inheritance

Constructors

FakeAuthClient({UpdateTokenCallback? onEnsureUpdatedToken})

Properties

hashCode int
The hash code for this object.
no setterinherited
logInController StreamController<AuthUser<OAuthToken>?>
final
logOutController StreamController<void>
final
onEnsureUpdatedToken UpdateTokenCallback?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ensureUpdatedToken(AuthUser<OAuthToken> user) Future<AuthUser<OAuthToken>?>
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.
override
logIn({String? email}) Future<AuthUser<OAuthToken>?>
Log in to a service and return authenticated user data
override
logOut(AuthUser<OAuthToken> user) Future<void>
Log the given user out of a service
override
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