JwtParseResult: {
    decoded: JwtVerifyResult;
    encoded: {
        header: string;
        payload: string;
        signature: string;
    };
}

Represents the result of parsing a JWT (JSON Web Token).

Type declaration

  • decoded: JwtVerifyResult

    The decoded part of the JWT, which includes the verified results. This contains the JWT's payload and other data that has been validated against the JWT's signature to ensure its integrity and authenticity.

  • encoded: {
        header: string;
        payload: string;
        signature: string;
    }

    The encoded components of the JWT, including the header, payload, and signature, each as a separate string. These are the raw, encoded parts of the JWT as they were received or transmitted.

    • header: string

      The encoded header of the JWT.

    • payload: string

      The encoded payload of the JWT.

    • signature: string

      The encoded signature of the JWT.