method IJWTService.computeCartHash
IJWTService.computeCartHash(cartContents: unknown): Promise<string>

Computes a secure hash of cart contents for integrity verification

Parameters

cartContents: unknown
  • The cart contents to hash

Return Type

Promise<string>

Secure hash string

Usage

import { type IJWTService } from ".";