UNPKG

@qr-platform/qr-code.js

Version:

QRCode.js is a professional JavaScript/TypeScript library for creating customized QR codes, offering a blend of simplicity and sophistication. With versatile styling options—dot shapes, colors, gradients, embedded images, borders, and text—it enables you

20 lines (19 loc) 597 B
/** * Represents the decoded payload of a valid license token. */ export interface DecodedLicenseToken { sub: string; client: string; email?: string; domains?: string[]; iat: number; exp: number; } /** * Validates a JWT access token using the public key. * * @param token The JWT token string to validate. * @returns The decoded token payload if the token is valid and not expired. * @throws {Error} If the token is invalid, expired, or verification fails for any other reason. */ export declare function validateToken(token: string): Promise<DecodedLicenseToken>;