Skip to content

VerifyJwsOptions ​

VerifyJwsOptions ​

Options for verifyCompactJws.

ts
interface VerifyJwsOptions {
	readonly algorithms: readonly [JwsAlgorithm, undefined];
	readonly key: CryptoKey | JwsKeyResolver;
	readonly tokenType: TokenTypePolicy;
	readonly limits?: Partial<JoseLimits>;
	readonly signal?: AbortSignal;
}

Properties

  • readonly algorithms: readonly [JwsAlgorithm, undefined] — Algorithms admitted for this token use. Never derived from the token.
  • readonly key: CryptoKey | JwsKeyResolver — A fixed verification key, or a resolver chosen by the caller.
  • readonly tokenType: TokenTypePolicy — The token type this verification accepts.
  • readonly limits?: Partial<JoseLimits> — Overrides for DEFAULT_JOSE_LIMITS.
  • readonly signal?: AbortSignal — Cancels key resolution.

Released under the MIT License.