Starts a session under a new id. Returns the id and the cookie naming it,
which expires with the row maxAgeSeconds from now. adminUserId
marks CFX staff signed in through cfx-admin; omitted, a member.
Ends a live session; the row stays. Idempotent: an ended or unknown one is a no-op.
Ends, as REVOKED, every live session of cognitoSub but keepId's.
Not Cognito GlobalSignOut: it would kill the kept session's refresh token
too, and an ended row's tokens are gone with its encryptedTokens, which only that
browser's cookie could open.
Ends, as REVOKED, every live session a staff admin user signed in to
this dashboard: for when the admin user is disabled or loses user-shadow:r.
Reseals a live session's values; an ended or unknown one is left alone.
One dashboard's server-side sessions, satisfying the
SessionStorethe dashboards inject;tablepicks the dashboard. It mints each session's id and cookie, and stores only the id's hash and the values encrypted under a key the id derives. Pass a WRITERdb: a replica read can miss a row just created on the writer and sign a fresh session out. Methods throw on infrastructure failure instead of returningResult, since the store contract has no functional errors.