{"_id":"@authaction/passkey-plus-sdk","_rev":"4-63e0ca7dbe45c3cace2c14192a13849e","name":"@authaction/passkey-plus-sdk","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@authaction/passkey-plus-sdk","version":"1.0.0","keywords":["passkey","webauthn","authentication","passwordless","authaction","frontend-sdk","fido2","javascript-sdk","typescript"],"author":{"name":"AuthAction Team"},"_id":"@authaction/passkey-plus-sdk@1.0.0","maintainers":[{"name":"authaction-dev","email":"chandhru@authaction.com"}],"dist":{"shasum":"f3693fd4cafe97a0382fec987599a6b4ed5b31da","tarball":"https://registry.npmjs.org/@authaction/passkey-plus-sdk/-/passkey-plus-sdk-1.0.0.tgz","fileCount":14,"integrity":"sha512-ADOgnb1cCO+0fOlE5Wrmb4Gjj5Kg5h6XUt+Xvjg93UJuorTvsakqqwHYfQW7aeAD5fGYS/QSD8L1zTi51+bQag==","signatures":[{"sig":"MEQCIHg8n2th3csZHDwmFpTS1N6FQiRWYOoLa3ORLBRy25TnAiB+L78zhljCewFO/T4rfQfatcwtAKmUmTOoUgh16/sNaw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22446},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"0de4a3e72634c05fba4a87ff5808d1f44d93aa90","scripts":{"build":"tsup","prepare":"npm run build"},"_npmUser":{"name":"authaction-dev","email":"chandhru@authaction.com"},"_npmVersion":"11.2.0","description":"A lightweight frontend SDK for passkey-based passwordless authentication with AuthAction","directories":{},"_nodeVersion":"20.17.0","dependencies":{"@simplewebauthn/browser":"^12.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","eslint":"^9.24.0","prettier":"^3.5.3","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/passkey-plus-sdk_1.0.0_1747397716967_0.6529984206243804","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@authaction/passkey-plus-sdk","version":"1.0.1","keywords":["passkey","webauthn","authentication","passwordless","authaction","frontend-sdk","fido2","javascript-sdk","typescript"],"author":{"name":"AuthAction Team"},"_id":"@authaction/passkey-plus-sdk@1.0.1","maintainers":[{"name":"authaction-dev","email":"chandhru@authaction.com"}],"dist":{"shasum":"cc3ebc0b7014d93a63563efebf1c7af231e7961b","tarball":"https://registry.npmjs.org/@authaction/passkey-plus-sdk/-/passkey-plus-sdk-1.0.1.tgz","fileCount":14,"integrity":"sha512-U9KYbUGxzmCCNXU6LOewf3zRiTLwDaqnmuBRsZz/sDV9jFdSDlV38g89A5+PNB+u18XHFby2XBv0zcRDViUn7w==","signatures":[{"sig":"MEUCIHLBwi7e/8FF/GYO9ALIFo1U9ngOFvX5oUjj2jGkifOnAiEAhUsNnC9f94NIv8MKgMPkiUK0XGI5rJ2FBJgwXdxsEKw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22641},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"a962f5046da83862a346de570ca32461ad34a7da","scripts":{"build":"tsup","prepare":"npm run build"},"_npmUser":{"name":"authaction-dev","email":"chandhru@authaction.com"},"_npmVersion":"10.8.2","description":"A lightweight frontend SDK for passkey-based passwordless authentication with AuthAction","directories":{},"_nodeVersion":"20.19.1","dependencies":{"@simplewebauthn/browser":"^12.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","eslint":"^9.24.0","prettier":"^3.5.3","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/passkey-plus-sdk_1.0.1_1747514254793_0.5232325763301884","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@authaction/passkey-plus-sdk","version":"1.0.2","keywords":["passkey","webauthn","authentication","passwordless","authaction","frontend-sdk","fido2","javascript-sdk","typescript"],"author":{"name":"AuthAction Team"},"_id":"@authaction/passkey-plus-sdk@1.0.2","maintainers":[{"name":"authaction-dev","email":"chandhru@authaction.com"}],"dist":{"shasum":"131c29827f791620d292f49bc50e347cf151b4eb","tarball":"https://registry.npmjs.org/@authaction/passkey-plus-sdk/-/passkey-plus-sdk-1.0.2.tgz","fileCount":14,"integrity":"sha512-ZbsDyB6BBsNWILzj95G+29Nf09NqHpfcLHBnCUERryeiu+fMEWYD4mIgt7k4XoCZZU+ELL0QtGq9IWKCYq6s6w==","signatures":[{"sig":"MEUCIQCQNqr8zL3X12+YxVa6damn7FeQP/dTviw1KQUa5kxXnwIgBLtLLhXjDsRxGqaERdLHfFxwDfb3+dfbpusdJRxUblc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25872},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"7e772079133e2abbbc97ab4c612d5937d0226c2f","scripts":{"build":"tsup","prepare":"npm run build"},"_npmUser":{"name":"authaction-dev","email":"chandhru@authaction.com"},"_npmVersion":"10.8.2","description":"A lightweight frontend SDK for passkey-based passwordless authentication with AuthAction","directories":{},"_nodeVersion":"20.19.1","dependencies":{"@simplewebauthn/browser":"^12.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","eslint":"^9.24.0","prettier":"^3.5.3","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/passkey-plus-sdk_1.0.2_1747517584472_0.05693302763046382","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@authaction/passkey-plus-sdk","version":"1.0.3","publishConfig":{"access":"public"},"description":"A lightweight frontend SDK for passkey-based passwordless authentication with AuthAction","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup","prepare":"npm run build"},"keywords":["passkey","webauthn","authentication","passwordless","authaction","frontend-sdk","fido2","javascript-sdk","typescript"],"author":{"name":"AuthAction Team"},"type":"commonjs","devDependencies":{"eslint":"^9.24.0","prettier":"^3.5.3","tsup":"^8.4.0","typescript":"^5.8.3"},"dependencies":{"@simplewebauthn/browser":"^12.0.0"},"_id":"@authaction/passkey-plus-sdk@1.0.3","gitHead":"4565eb1181f63bd295828c94924e7b7b7f87171f","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-LnPLRNPpVYifKr4YjzyvlM4A4ZkgMn9fZZwdtDkPzUlY9BbDRpfNBo27SNlisfrE8R7C+MQIYckq+ultgsbkzQ==","shasum":"109394f957fd524c9b7e30a7493bde5a2f4d203d","tarball":"https://registry.npmjs.org/@authaction/passkey-plus-sdk/-/passkey-plus-sdk-1.0.3.tgz","fileCount":14,"unpackedSize":25807,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDr+Zup7mA6C8eVh7hbFKsoaJgvkdzyPKd6XH5F0wbpYQIgTU440kqDsQUr2T6vXxFESQ9xZ3S1EqPQRLLhO9ghfuA="}]},"_npmUser":{"name":"authaction-dev","email":"chandhru@authaction.com"},"directories":{},"maintainers":[{"name":"authaction-dev","email":"chandhru@authaction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/passkey-plus-sdk_1.0.3_1747518195809_0.8384804142392634"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-16T12:15:16.858Z","modified":"2025-05-17T21:43:16.151Z","1.0.0":"2025-05-16T12:15:17.151Z","1.0.1":"2025-05-17T20:37:34.964Z","1.0.2":"2025-05-17T21:33:04.677Z","1.0.3":"2025-05-17T21:43:15.975Z"},"author":{"name":"AuthAction Team"},"keywords":["passkey","webauthn","authentication","passwordless","authaction","frontend-sdk","fido2","javascript-sdk","typescript"],"description":"A lightweight frontend SDK for passkey-based passwordless authentication with AuthAction","maintainers":[{"name":"authaction-dev","email":"chandhru@authaction.com"}],"readme":"# Passkey Plus SDK\n\nA lightweight frontend SDK that enables seamless integration of passkey authentication into your existing authentication solutions, powered by AuthAction (https://authaction.com).\n\n## Purpose\n\nThis SDK provides a simple interface to add passkey-based authentication to your applications while working alongside your existing authentication systems. It allows you to leverage the security benefits of passkeys without having to completely replace your current authentication infrastructure.\n\n## Features\n\n- Simple and intuitive API\n- TypeScript support with type definitions\n- Modern ES modules and CommonJS support\n- Zero dependencies (except for browser WebAuthn API)\n- Comprehensive error handling\n- Integration with AuthAction's passkey authentication service\n\n## Installation\n\n```bash\nnpm install @authaction/passkey-plus-sdk\n```\n\n## Usage\n\n### Initialize the SDK\n\n```typescript\nimport { PasskeyPlus } from \"@authaction/passkey-plus-sdk\";\n\n// Initialize with your AuthAction tenant credentials\nconst passkeyPlus = new PasskeyPlus({\n  tenantDomain: \"your-tenant.authaction.com\",\n  appId: \"your-app-id\",\n});\n```\n\n### Register a New Passkey\n\n```typescript\n// Start passkey registration process\nawait passkeyPlus.register(\"transaction-id\", {\n  authenticatorAttachment: \"platform\", // or 'cross-platform'\n});\n```\n\n### Authenticate with Passkey\n\n```typescript\n// Authenticate using an existing passkey\nawait passkeyPlus.authenticate(\"transaction-id\", {\n  isConditionalMediation: true,\n});\n```\n\n### Check Passkey Support\n\n```typescript\n// Check if passkey authentication is available\nconst canAuthenticate = await passkeyPlus.canAuthenticateWithPasskey();\nconst canRegister = await passkeyPlus.canRegisterPasskey();\nconst canUseConditionalMediation =\n  await passkeyPlus.canUseConditionalMediation();\n```\n\n## Error Handling\n\nThe SDK uses standard JavaScript errors. You can catch and handle any errors that occur during passkey operations:\n\n```typescript\ntry {\n  await passkeyPlus.register(\"transaction-id\");\n} catch (error) {\n  // Handle any errors that occur during passkey operations\n  console.error(\"Error:\", error);\n}\n```\n\n## Browser Support\n\nThis SDK works with any modern browser that supports the WebAuthn API. It's compatible with:\n\n- Chrome\n- Firefox\n- Safari\n- Edge\n\n## Learn More\n\nFor more information about passkeys and AuthAction's authentication solutions, visit [AuthAction's website](https://authaction.com).\n","readmeFilename":"README.md"}