IO Wallet SDK
    Preparing search index...
    • Creates an OAuth 2.0 authorization-code access token request body.

      Parameters

      • options: RetrieveAuthorizationCodeAccessTokenOptions

        Access token request inputs.

        • OptionaladditionalRequestPayload?: Record<string, unknown>

          Additional payload to include in the access token request. Items will be encoded and sent using x-www-form-urlencoded format. Nested items (JSON) will be stringified and url encoded.

        • authorizationCode: string

          The authorization code

        • callbacks: Pick<
              CallbackContext,
              "clientAuthentication"
              | "fetch"
              | "generateRandom"
              | "hash"
              | "signJwt",
          >

          Callbacks to use for requesting access token

        • pkceCodeVerifier: string

          PKCE Code verifier that was used in the authorization request.

        • redirectUri: string

          Redirect uri to include in the access token request. It MUST be set as in the Request Object.

      Returns Promise<
          {
              code: string;
              code_verifier: string;
              grant_type: "authorization_code";
              redirect_uri: string;
          },
      >

      URL-form-encodable authorization-code grant request data.