@gaonengwww/jose
Version:
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
9 lines (6 loc) • 704 B
TypeScript
import { CryptoKey, KeyObject, JWK, VerifyOptions, CompactVerifyResult, GenericGetKeyFunction, CompactJWSHeaderParameters, FlattenedJWSInput, ResolvedKey } from '../../types.d.js';
interface CompactVerifyGetKey extends GenericGetKeyFunction<CompactJWSHeaderParameters, FlattenedJWSInput, CryptoKey | KeyObject | JWK | Uint8Array> {
}
declare function compactVerify(jws: string | Uint8Array, key: CryptoKey | KeyObject | JWK | Uint8Array, options?: VerifyOptions): Promise<CompactVerifyResult>;
declare function compactVerify(jws: string | Uint8Array, getKey: CompactVerifyGetKey, options?: VerifyOptions): Promise<CompactVerifyResult & ResolvedKey>;
export { type CompactVerifyGetKey, compactVerify };