Skip to content

VerifiedJwt ​

VerifiedJwt ​

A JWT whose signature and claims both passed the caller's policy.

ts
interface VerifiedJwt {
	readonly verified: true;
	readonly header: JwsHeader<JwsAlgorithm>;
	readonly claims: JsonObject;
	readonly registered: RegisteredClaims;
}

Properties

  • readonly verified: true — Always true.
  • readonly header: JwsHeader<JwsAlgorithm> — The authenticated protected header.
  • readonly claims: JsonObject — Every authenticated claim, exactly as the token carried it.
  • readonly registered: RegisteredClaims — The registered claims, validated against their types.

Released under the MIT License.