Skip to content

RegisteredClaims ​

RegisteredClaims ​

The RFC 7519 §4.1 registered claims, each checked against its defined type.

ts
interface RegisteredClaims {
	readonly iss?: string;
	readonly sub?: string;
	readonly aud?: string | readonly string[];
	readonly exp?: number;
	readonly nbf?: number;
	readonly iat?: number;
	readonly jti?: string;
}

Properties

  • readonly iss?: string — Issuer.
  • readonly sub?: string — Subject.
  • readonly aud?: string | readonly string``[] — Audience, as the token carried it: a string or an array of strings.
  • readonly exp?: number — Expiration time in seconds since the epoch.
  • readonly nbf?: number — Not-before time in seconds since the epoch.
  • readonly iat?: number — Issued-at time in seconds since the epoch.
  • readonly jti?: string — Token identifier.

Released under the MIT License.