@acl-identity/core
v0.1.6
Published
Core HTTP engine for the ACL Identity SDK
Readme
@acl-identity/core
Core engine for the ACL Identity SDK. Provides the HTTP client, token management, PKCE utilities, WebAuthn operations, and retry/telemetry infrastructure used by @acl-identity/browser and @acl-identity/admin.
You typically do not install this package directly — use @acl-identity/browser or @acl-identity/admin instead. Install it directly only if you are building a custom integration.
Installation
npm install @acl-identity/core
# or
pnpm add @acl-identity/coreSub-path exports
| Import path | Contents |
|---|---|
| @acl-identity/core | Re-exports all modules below |
| @acl-identity/core/http | HttpClient |
| @acl-identity/core/token | TokenManager, TokenStorage, MemoryTokenStorage |
| @acl-identity/core/pkce | generateCodeVerifier, generateCodeChallenge, generateState, generateNonce |
| @acl-identity/core/webauthn | authenticateWithPasskey, registerPasskey, WebAuthn codec helpers |
| @acl-identity/core/errors | ACLError, error factory |
Example — custom HTTP client
import { HttpClient, TokenManager, MemoryTokenStorage } from '@acl-identity/core';
const storage = new MemoryTokenStorage();
const tokenManager = new TokenManager({ storage });
const http = new HttpClient({
baseUrl: 'https://auth.example.com',
tokenProvider: () => tokenManager.getAccessToken(),
csrfEnabled: false,
});
const data = await http.get('/api/resource');License
MIT
