Skip to content

UnverifiedJws ​

UnverifiedJws ​

A parsed token whose signature has not been checked. Nothing in it is trustworthy until verifyCompactJws succeeds.

ts
interface UnverifiedJws {
	readonly verified: false;
	readonly header: JwsHeader;
	readonly payload: Uint8Array;
	readonly signingInput: Uint8Array;
	readonly signature: Uint8Array;
}

Properties

  • readonly verified: false — Always false.
  • readonly header: JwsHeader — The header, unauthenticated.
  • readonly payload: Uint8Array — The payload bytes, unauthenticated.
  • readonly signingInput: Uint8Array — ASCII bytes of BASE64URL(header) || '.' || BASE64URL(payload).
  • readonly signature: Uint8Array — The decoded signature bytes.

Released under the MIT License.