n8n
Version:
n8n Workflow Automation Tool
5 lines (4 loc) • 337 B
TypeScript
import type { CryptoKey } from 'jose';
export declare function isJweToken(token: unknown): token is string;
export declare function decryptJweToken(token: string, privateKey: CryptoKey): Promise<string>;
export declare function decryptJweTokenData(data: Record<string, unknown>, privateKey: CryptoKey): Promise<Record<string, unknown>>;