Community-maintained TypeScript client for the Signicat Authentication REST API (v1.4.0, last updated 2025). Automates OAuth2 token lifecycle — issuance, caching, renewal — with zero-touch configuration. Built on Axios with full TypeScript type definitions. Differentiator: removes the boilerplate of manual token handling vs. raw HTTP or OpenAPI-generated clients. Supports redirect, embedded, and headless authentication flows. Node.js >=14.0.0, ESM-only. Weekly releases tracked on npm.
npm install signicat-client-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the Signicat client, configures OAuth2 token management, and creates an authentication session with error handling using ApiError.
Call SignicatClient.configureAuth() once at application startup, typically in an initialization module.
Use TypeScript type checks or runtime validation libraries (e.g., zod) to validate request objects before sending.
Set `VERSION: '2'` or later explicitly when Signicat APIs deprecate v1.
Increase `expirationBuffer` in configureAuth() to 120 or more for high-latency environments.
Use Axios interceptors via `client.instance.interceptors` instead (not documented but available).
Use `import { SignicatClient } from 'signicat-client-ts'` instead of `import SignicatClient from 'signicat-client-ts'`.Call `SignicatClient.configureAuth({ clientId: '...', clientSecret: '...' })` before `new SignicatClient()`.Verify clientId and clientSecret are correct. Check tokenUrl (default: 'https://api.signicat.com/auth/open/connect/token'). Ensure network allows outbound HTTPS.
Run `npm install signicat-client-ts`. Ensure tsconfig.json has `moduleResolution: 'node'` and `esModuleInterop: true`.