type
PreviewToken
A short-lived read-only resource capability.
Properties
| Property | Type | Description |
|---|---|---|
Token | string | The Token value. |
Resource | string | The Resource value. |
Slug | string | The Slug value. |
DocumentID | string | The DocumentID value. |
ExpiresAt | string | The 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"`
}