{"library":"postex-auth-sdk","title":"PostEx Auth SDK","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install postex-auth-sdk"],"cli":null},"imports":["import { AuthSDK } from 'postex-auth-sdk-stage'","import { AuthSDKConfig } from 'postex-auth-sdk-stage'","import type { AuthStatusResponse } from 'postex-auth-sdk-stage'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { AuthSDK } from 'postex-auth-sdk-stage';\n\nconst auth = new AuthSDK({\n  apiKey: process.env.POSTEX_API_KEY ?? '',\n  appId: 'postexglobal'\n});\n\nasync function login(email: string) {\n  const status = await auth.getStatus({ email });\n  const initResult = await auth.initiateAuth({ email });\n  if (initResult.status === 'webauthn_challenge') {\n    const response = await auth.authenticateWithPasskey({\n      challenge: initResult.challenge,\n      rp: initResult.rp,\n      credentialIds: initResult.credentialIds\n    });\n    console.log('Authenticated with passkey:', response);\n  } else if (initResult.status === 'otp_sent') {\n    const otpCode = await getUserOTP();\n    const verifyResult = await auth.verifyOTP(otpCode);\n    console.log('Authenticated with OTP:', verifyResult);\n  }\n}","lang":"typescript","description":"Initializes the SDK with API key and appId, checks auth status, then handles passkey or OTP based on the initiate response.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}