Type alias TokenPayload

TokenPayload: {
    aud?: string | string[];
    exp?: number;
    iat?: number;
    iss?: string;
    jti?: string;
    nbf?: number;
    sub?: string;
    [key: string]: JSONValue | undefined;
}

Token based on JWT specification. All properties are "claims" and they are all optional. Note that the properties here have to be strict JSON values. This is because tokens are going to be JSON encoded. It avoids confusion if input types are not allowed to be rich.

Type declaration

  • [key: string]: JSONValue | undefined
  • Optional aud?: string | string[]
  • Optional exp?: number
  • Optional iat?: number
  • Optional iss?: string
  • Optional jti?: string
  • Optional nbf?: number
  • Optional sub?: string

Generated using TypeDoc