interface IJWTService

Combined interface for full JWT operations Follows Interface Segregation Principle (ISP) by composing smaller interfaces

Methods

generateJTI(): string

Generates a unique JWT ID for replay attack prevention

computeCartHash(cartContents: unknown): Promise<string>

Computes a secure hash of cart contents for integrity verification

Usage

import { type IJWTService } from ".";