API / Minn\Auth / Authenticated

Authenticated final readonly class

Minn\Auth\Authenticated · public/minn/src/Minn/Auth/Authenticated.php · 16 lines

A validated session: the user row and the raw session token behind it.

Constants and properties

propreadonly Minn\Content\UserRecord $user

Promoted from the constructor.

propreadonly string $token

Promoted from the constructor.

propreadonly ?array $applicationPassword

Promoted from the constructor.

Public

new__construct(Minn\Content\UserRecord $user, string $token, ?array $applicationPassword = NULL)#
$applicationPasswordarray<string, mixed>|nullthe record that authenticated this call, when Basic auth did
methodid(): int#

The signed-in user's id.