The PostEx Auth SDK (v1.3.0) provides a comprehensive authentication solution for web applications, supporting WebAuthn/passkeys, OTP, magic links, and DPoP token binding (RFC 9449). Built for PostEx ecosystem apps, it offers automatic token management, trusted device recognition, and browser feature detection. Ships TypeScript types. Release cadence: active development. Key differentiators: multi-factor with passkeys, ECDSA P-256 DPoP, and integrated session/device tracking.
npm install postex-auth-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the SDK with API key and appId, checks auth status, then handles passkey or OTP based on the initiate response.
Use new AuthSDK({ apiKey, appId }) instead of new AuthSDK(apiKey, appId).Switch to appId: 'postexglobal' for global environment.
Use auth.getStatus({ mobileNumber: '...' }) instead of auth.getStatus('...').Use auth.initiateAuth({ mobileNumber: '...' }).Use auth.authenticateMagicLink(token) instead.
Use import { AuthSDK } from 'postex-auth-sdk-stage' and ensure version >= 1.0.0.Use dynamic import: const { AuthSDK } = await import('postex-auth-sdk-stage'); or switch to ES modules.Provide at least one identifier: auth.initiateOTP({ email: 'user@example.com' }) or { mobileNumber: '...' }.Ensure apiKey is provided in the config and is non-empty.