Skip to main content

Can I change the expiration period of preview tokens?

By default, the expiration period of preview tokens is set to 24 hours.
If you want to change it, you can do so through constant settings.
Set the value of RCMS_API_PREVIEW_TOKEN_LIFESPAN to the desired number of seconds.


Click on [Environment Settings] -> [Constants] -> [Add]. Image from Gyazo

Configuration Values

Set the following values:

  • Value: Expiration period of preview tokens in seconds

Image from Gyazo

Once the configuration is complete, the value of the parameter "validUntil=****" in the preview token will be updated.


The value is in Unixtime, so convert it to a date and time for verification.


If you have any other questions, please contact us or check out Our Slack Community.