IO Wallet SDK
    Preparing search index...

    Interface CreateTokenDPoPOptions

    Options for Token Request DPoP generation

    interface CreateTokenDPoPOptions {
        accessToken?: string;
        callbacks: Partial<Pick<CallbackContext, "generateRandom">> & Pick<
            CallbackContext,
            "hash"
            | "signJwt",
        >;
        issuedAt?: Date;
        jti?: string;
        signer: JwtSignerJwk;
        tokenRequest: {
            method:
                | "GET"
                | "POST"
                | "PUT"
                | "DELETE"
                | "HEAD"
                | "OPTIONS"
                | "TRACE"
                | "CONNECT"
                | "PATCH";
            url: string;
        };
    }
    Index

    Properties

    accessToken?: string

    The access token to which the dpop jwt should be bound. Required when the dpop will be sent along with an access token.

    callbacks: Partial<Pick<CallbackContext, "generateRandom">> & Pick<
        CallbackContext,
        "hash"
        | "signJwt",
    >

    Object containing callbacks for DPoP generation and signature

    issuedAt?: Date

    Creation time of the JWT. If not provided the current date will be used

    jti?: string

    jti claim for the DPoP JWT. If not provided, a random one will be generated if a generateRandom callback is provided

    signer: JwtSignerJwk

    The signer of the dpop jwt. Only jwk signer allowed.

    tokenRequest: {
        method:
            | "GET"
            | "POST"
            | "PUT"
            | "DELETE"
            | "HEAD"
            | "OPTIONS"
            | "TRACE"
            | "CONNECT"
            | "PATCH";
        url: string;
    }

    The request for which to create the dpop jwt