Stone.js API
    Preparing search index...
    • Sign the cookie value.

      Parameters

      • value: unknown

        The value to sign.

      • secret: string

        Secret for signing (must be strong, see isSignableCookieSecret).

      Returns string

      If the value is not a string, is already signed, or the secret is weak/empty.