t-comm
Version:
专业、稳定、纯粹的工具库
13 lines (12 loc) • 349 B
TypeScript
import type * as JoseType from 'jose';
/**
* 获取 jose 库
* jose 是一个用于 JSON Web Encryption (JWE) 和 JSON Web Signature (JWS) 的第三方库
* @returns jose 库
* @example
* ```ts
* const jose = getJose();
* const { payload } = await jose.jwtVerify(token, secret);
* ```
*/
export declare function getJose(): typeof JoseType;