Principals

interface Principals(source)

Links a verified passkey (or any login) to the app's HTTP session: it writes the authenticated user handle onto a response and reads it back off later requests.

Inheritors

Functions

Link copied to clipboard
abstract fun clear(response: Response): Response

Drop the session (logout).

Link copied to clipboard
abstract fun read(request: Request): Principal

Resolve the principal for a request:

Link copied to clipboard
abstract fun write(userHandle: Base64UriBlob, response: Response): Response

Establish the session for a verified user (eg. set a cookie) on the auth-success response.