type

AuthIdentity

type AuthIdentity struct { Collection schema.CollectionSlug Actor store.Document // PreviewEpoch is an opaque lifecycle snapshot captured before transport // authentication. Zero lets direct Go callers snapshot at mint entry. PreviewEpoch uint64 }

An exact authenticated collection and actor document.

Source core/auth.go:37

Collectionschema.CollectionSlug
Exact auth-enabled collection that owns Actor.
Actorstore.Document
Authenticated document loaded from Collection.
PreviewEpochuint64
Opaque authentication lifecycle snapshot; direct callers normally leave it zero.

Prefer identity-aware methods when an application has more than one auth collection. Actor-only compatibility methods reject ambiguous identities rather than guessing. PreviewEpoch is opaque framework lifecycle state; ordinary callers leave it zero.