Oslo

JWT

Represents a JWT.

Definition

interface JWT {
	value: string;
	headers: object;
	payload: object;
	algorithm: JWTAlgorithm;
	expiresAt: Date | null;
	issuer: string | null;
	subject: string | null;
	audiences: string[] | null;
	notBefore: Date | null;
	issuedAt: Date | null;
	jwtId: string | null;
	parts: [header: string, payload: string, signature: string];
}

Properties

  • value: JWT string
  • headers
  • payload
  • algorithm
  • expiresAt: exp claim
  • issuer: iss claim
  • subject: sub claim
  • audiences: aud claims
  • notBefore: nbf claim
  • issuedAt: iat claim
  • jwtId: jti claim
  • parts: JWT string separated into 3 parts