Alokai

isValidCmsTicketId

Validates the format of a SmartEdit preview ticket (cmsTicketId).

The ticket reaches the Storefront through untrusted channels (URL query parameter or cookie), so validate it before forwarding it to the middleware in the x-cms-ticket-id header.

Signature

declare function isValidCmsTicketId(
	value: unknown
): value is string;

Parameters

NameRequiredTypeDescription
valueRequiredunknown

On this page