IO Wallet SDK
    Preparing search index...

    Interface DecodeJwtOptions<HeaderSchema, PayloadSchema>

    interface DecodeJwtOptions<
        HeaderSchema extends BaseSchema
        | undefined,
        PayloadSchema extends BaseSchema | undefined,
    > {
        errorMessagePrefix?: string;
        headerSchema?: HeaderSchema;
        jwt: string;
        payloadSchema?: PayloadSchema;
    }

    Type Parameters

    • HeaderSchema extends BaseSchema | undefined
    • PayloadSchema extends BaseSchema | undefined
    Index

    Properties

    errorMessagePrefix?: string

    Optional prefix for error messages thrown during decoding, to provide more context on where the error occurred

    headerSchema?: HeaderSchema

    Schema to use for validating the header. If not provided the default zJwtHeader schema will be used

    jwt: string

    The compact encoded jwt

    payloadSchema?: PayloadSchema

    Schema to use for validating the payload. If not provided the default zJwtPayload schema will be used