AuthenticationInfo class

Holds the id for an authenticated user and which scopes it can access. Allowed scopes are defined for each Endpoint.

Constructors

AuthenticationInfo.new(Object userIdentifier, Set<Scope> scopes, {String? authId})
Creates a new AuthenticationInfo.

Properties

authId String?
The authentication key id.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes Set<Scope>
The scopes that the user can access.
final
userId int
Returns the int user ID of the authenticated user.
no setter
userIdentifier String
Identifier of the user, as set by the AuthenticationHandler.
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