UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

20 lines (16 loc) 414 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 获取 jose 库 * jose 是一个用于 JSON Web Encryption (JWE) 和 JSON Web Signature (JWS) 的第三方库 * @returns jose 库 * @example * ```ts * const jose = getJose(); * const { payload } = await jose.jwtVerify(token, secret); * ``` */ function getJose() { return require('jose'); } exports.getJose = getJose;