Principal class final

The signed-in end user a rule reads (user.id, user.accountType, user.claims, 05 §3.5). An anonymous caller has none.

Constructors

Principal(String endUserId, String accountType, {Map<String, Object?> claims = const {}})
const

Properties

accountType → String
guest or full.
final
claims → Map<String, Object?>
The custom-claim snapshot the session's token carries.
final
endUserId → String
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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