{"library":"postex-auth-sdk-stage","title":"PostEx Auth SDK","description":"PostEx Authentication SDK (v1.4.0) provides a comprehensive solution for implementing secure authentication in web applications. Supports WebAuthn/Passkeys, OTP verification, magic link authentication, and DPoP (RFC 9449 compliant token binding). Features include multi-factor authentication, automatic token management, trusted device recognition, and browser feature detection. Ships TypeScript types. Active development with regular releases. Differentiators: includes DPoP support and passkey-first approach.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install postex-auth-sdk-stage"],"cli":null},"imports":["import { AuthSDK } from 'postex-auth-sdk-stage'","import type { AuthSDKConfig } from 'postex-auth-sdk-stage'","import type { AuthStatusResponse } from 'postex-auth-sdk-stage'","import type { InitiateAuthResponse } 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.API_KEY ?? '',\n  appId: 'postexglobal'\n});\n\nasync function authenticate() {\n  try {\n    const status = await auth.getStatus({ email: 'user@example.com' });\n    const result = await auth.initiateAuth({ email: 'user@example.com' });\n    if (result.status === 'webauthn_challenge') {\n      const authResponse = await auth.authenticateWithPasskey({\n        challenge: result.challenge,\n        rp: result.rp,\n        credentialIds: result.credentialIds\n      });\n      console.log('Passkey authenticated', authResponse);\n    } else if (result.status === 'otp_sent') {\n      const otpResponse = await auth.verifyOTP('123456');\n      console.log('OTP verified', otpResponse);\n    }\n  } catch (error) {\n    console.error('Authentication failed', error);\n  }\n}\n\nauthenticate();","lang":"typescript","description":"Initializes the AuthSDK with environment variables, checks status, initiates authentication, and handles passkey or OTP flows.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}