TypeScript SDK
Build the public client checkout with npm ci && npm run build, then run
npm pack and install the resulting tarball in your application. Source setup
does not assume an npm registry release. Use Node.js 22 or newer.
readFile verifies the returned bytes against the pinned manifest. Keep tokens
out of frontend bundles and logs. Your runtime owns credential refresh; the
callback retrieves its current token for each request.
The convenience client above uses token; the Fern-generated TypeScript client
uses accessToken. Do not interchange the constructors. See the
language reference
and runnable examples.