Skip to main content

Module preview

Module preview 

Source
Expand description

Draft preview service โ€” generates signed, time-limited preview tokens so authors can share links to unpublished content.

Functionsยง

cleanup_expired_tokens
Remove expired preview tokens.
generate_preview_token
Generate a signed preview token for a content item. The token encodes the content ID and an expiration time.
validate_preview_token
Validate a preview token and return the associated content_id if valid.