type

AuthSession

A new bearer session, safe ID, typed user, and expiry.

Properties

PropertyTypeDescription
IDstringNon-secret session identifier.
TokenstringOne-time opaque bearer credential returned when the session is created.
Collectionschema.CollectionSlugAuth-enabled collection that owns User.
Userstore.DocumentCurrent authenticated content document.
ExpiresAttime.TimeAbsolute UTC expiry time.

How it works

Token is a bearer secret. Store it only in a secure HTTP-only cookie or equivalent secret store; protocol/session-list representations never expose it.

Full signature