type

PreviewToken

type PreviewToken struct { Token string `json:"token"` Resource string `json:"resource"` Slug string `json:"slug"` DocumentID string `json:"documentId"` ExpiresAt string `json:"expiresAt"` }

A short-lived read-only resource capability.

Source protocol/envelope.go:253

Tokenstring
The Token value.
Resourcestring
The Resource value.
Slugstring
The Slug value.
DocumentIDstring
The DocumentID value.
ExpiresAtstring
The ExpiresAt value.

Token is returned only when minted and is scoped to one collection document or global.