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.

Configuration

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

Configuration Values

Set the following values:

  • Name: RCMS_API_PREVIEW_TOKEN_LIFESPAN
  • 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.

tip

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


Support

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