AuthenticateResponse<USER_ID> class
The result of the authentication attempt, if success is
true
: the current user will be able to interact with routes
on the server side created with addRouteFor.authenticatedUsers
.
Constructors
-
AuthenticateResponse(USER_ID? userId, List<
String> ? claims, AsklessAuthenticateError? error)
Properties
-
claims
→ List<
String> ? -
The claims the authenticated user has, or
null
final - error → AsklessAuthenticateError?
-
Authenticate error, is never null in cases where success == false
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success → bool
-
Returns
true
if the authentication is a successno setter - userId → USER_ID?
-
The authenticated user ID, or
null
final
Methods
-
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