AbsoluteJS

@absolutejs/esign-docusign

@absolutejs/esign-docusignv0.0.1betaCommerce & Growth

DocuSign adapter for @absolutejs/esign

#Installation

BASH
bun add @absolutejs/esign-docusign

#Capabilities

Overview

The base URI must be the HTTPS base_uri for the selected account returned by OAuth /userinfo, not a user-entered API URL. Sandbox uses https://account-d.docusign.com; production OAuth uses https://account.docusign.com. docusignOAuth provides authorization URL construction, code exchange, refresh, and account discovery. The application must validate OAuth state and authorize the selected account.

Use a DocuSign integration key with an approved redirect URI and configure Connect HMAC secrets. Pass the exact raw JSON callback body and headers to verifyWebhook; key rotation is supported by passing multiple secrets. Reconcile the saved envelope afterward. authenticationMethod: none records that the application provides recipient authorization; it does not add provider identity verification.

Signature requests use embedded recipients. Open createSigningSession().url as a top-level navigation, then reconcile after returning. Both combined PDF and completion certificate downloads require a completed envelope.

Show 1 more

References: Create envelope, recipient view, Connect HMAC.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/esign-docusign through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/esign-docusign version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/esign-docusign example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#@absolutejs/esign-docusign quick start

Partial snippet

# @absolutejs/esign-docusign

TS
import { docusign } from '@absolutejs/esign-docusign';
const provider = docusign({
  accountId: connectedAccount.accountId,
  baseUri: connectedAccount.baseUri,
  accessToken: () => tokenResolver.getFreshToken(),
  hmacSecrets: [process.env.DOCUSIGN_CONNECT_HMAC_SECRET!],
});

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/esign-docusignPackage entry point declared in package.json.

#Package commands

Scripts declared by this package manifest.

bun run buildbun build src/index.ts --outdir dist --target node --external '@absolutejs/esign' && tsc --project tsconfig.build.json
bun run check:packageabsolute-changelog check
bun run testbun test ../test
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

3 symbols
docusignvaluePermalinkSource
TS
const docusign: (options: DocuSignOptions) => ESignProvider;
Exported from @absolutejs/esign-docusign