A guard that also persists login state (session guard, T2).
- Implemented types
-
- Guard<
T>
- Guard<
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setterinherited
-
provider
→ UserProvider<
T> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attempt(
Map< String, Object?> credentials, {bool remember = false}) → Future<bool> -
check(
) → Future< bool> -
inherited
-
forgetUser(
) → void -
Clears the cached user for the current request/scope.
inherited
-
guest(
) → Future< bool> -
inherited
-
id(
) → Future< Object?> -
inherited
-
login(
T user, {bool remember = false}) → Future< void> -
logout(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setUser(
T user) → void -
Sets the user for the current request/scope (tests,
once).inherited -
toString(
) → String -
A string representation of this object.
inherited
-
user(
) → Future< T?> -
The authenticated user, cached for the current request/scope.
inherited
-
validate(
Map< String, Object?> credentials) → Future<bool> -
Validates credentials without logging the user in.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited