type

PreviewToken

A short-lived read-only resource capability.

Properties

PropertyTypeDescription
TokenstringThe Token value.
ResourcestringThe Resource value.
SlugstringThe Slug value.
DocumentIDstringThe DocumentID value.
ExpiresAtstringThe ExpiresAt value.

How it works

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

Full signature

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

Source protocol/envelope.go:512