type

AuthIdentity

An exact authenticated collection and actor document.

Properties

PropertyTypeDescription
Collectionschema.CollectionSlugExact auth-enabled collection that owns Actor.
Actorstore.DocumentAuthenticated document loaded from Collection.
PreviewEpochuint64Opaque authentication lifecycle snapshot; direct callers normally leave it zero.

How it works

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.

Full signature

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 }

Source core/auth.go:41