type
AuthIdentity
An exact authenticated collection and actor document.
Properties
| Property | Type | Description |
|---|---|---|
Collection | schema.CollectionSlug | Exact auth-enabled collection that owns Actor. |
Actor | store.Document | Authenticated document loaded from Collection. |
PreviewEpoch | uint64 | Opaque 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
}