person property

FakePerson get person

The person of session; throws a StateError for an unsecured operation.

Implementation

FakePerson get person =>
    world.people[session?.userId] ?? (throw StateError('no session'));