{"_id":"@elixpo/accounts","_rev":"3-e348663141ccf59fcd96e97213793efe","name":"@elixpo/accounts","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"@elixpo/accounts","version":"1.0.1","license":"MIT","_id":"@elixpo/accounts@1.0.1","maintainers":[{"name":"elixpo","email":"ayushbhatt633@gmail.com"}],"homepage":"https://accounts.elixpo.com/docs/lixaccounts","bugs":{"url":"https://github.com/elixpo/accounts.elixpo/issues"},"dist":{"shasum":"5ea356a8f07209f7f2f7bb92e9f08703c7efee0d","tarball":"https://registry.npmjs.org/@elixpo/accounts/-/accounts-1.0.1.tgz","fileCount":39,"integrity":"sha512-08r4bkZInT2ArsSUhTiIyPPqf0RiY8HTKz1anvMmEduFbKUwmeSy83lGF/hF8F9gNdhLOqIwtunQAaR6o8vnQA==","signatures":[{"sig":"MEQCIH1jizv49TOvgAnSBJ+gfGe0suCJhxMZnQDUxNEp74EWAiAc4eBdacNPFy7KuqbDAfRbP6rITuZMwg+JISgtHYiiaQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61115},"main":"./dist/core/index.js","type":"module","types":"./dist/core/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./package.json":"./package.json"},"gitHead":"664c9d338342ba64083f1e7cd12b589731713593","scripts":{"build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","pack:check":"npm run build && npm pack --dry-run"},"_npmUser":{"name":"elixpo","email":"ayushbhatt633@gmail.com"},"repository":{"url":"git+https://github.com/elixpo/accounts.elixpo.git","type":"git","directory":"packages/accounts"},"_npmVersion":"11.12.1","description":"Standards-first OAuth and OpenID Connect SDK for Elixpo Accounts","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"jose":"^5.9.6"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/accounts_1.0.1_1787854057402_0.3582417708125152","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@elixpo/accounts","version":"1.0.2","license":"MIT","_id":"@elixpo/accounts@1.0.2","maintainers":[{"name":"elixpo","email":"ayushbhatt633@gmail.com"}],"homepage":"https://accounts.elixpo.com/docs/lixaccounts","bugs":{"url":"https://github.com/elixpo/accounts.elixpo/issues"},"dist":{"shasum":"e4e9171e3e1ac78933cb993ba424794a41fd2423","tarball":"https://registry.npmjs.org/@elixpo/accounts/-/accounts-1.0.2.tgz","fileCount":39,"integrity":"sha512-jSPZXmdeM2LOSpiIQLgSqHWakx4soHoFthkZHyFr/MrJVa98RLG4zo5HU/CLp6K5cfVjLzwvRyilYofKnkBSbw==","signatures":[{"sig":"MEUCIB/lFpZ0/PBOZsijSvZeKLeQEb0AvV5lxyugzhkJSRzcAiEA6qYECmex6UwhZoUKbdj3rMCRjqSXpMXfq7tscLaVOaY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61115},"main":"./dist/core/index.js","type":"module","types":"./dist/core/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./package.json":"./package.json"},"gitHead":"4ae0706c98bc2bd3486c650366968c24997ba91b","scripts":{"build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","pack:check":"npm run build && npm pack --dry-run"},"_npmUser":{"name":"elixpo","email":"ayushbhatt633@gmail.com"},"repository":{"url":"git+https://github.com/elixpo/accounts.elixpo.git","type":"git","directory":"packages/accounts"},"_npmVersion":"11.12.1","description":"Standards-first OAuth and OpenID Connect SDK for Elixpo Accounts","directories":{},"sideEffects":false,"_nodeVersion":"24.15.0","dependencies":{"jose":"^5.9.6"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/accounts_1.0.2_1787857309603_0.6147184423240621","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@elixpo/accounts","version":"1.0.4","description":"Standards-first OAuth and OpenID Connect SDK for Elixpo Accounts","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/elixpo/accounts.elixpo.git","directory":"packages/accounts"},"homepage":"https://accounts.elixpo.com/docs/lixaccounts","bugs":{"url":"https://github.com/elixpo/accounts.elixpo/issues"},"sideEffects":false,"exports":{".":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./core":{"types":"./dist/core/index.d.ts","import":"./dist/core/index.js","default":"./dist/core/index.js"},"./package.json":"./package.json"},"main":"./dist/core/index.js","types":"./dist/core/index.d.ts","engines":{"node":">=20"},"scripts":{"build":"tsc -p tsconfig.build.json","clean":"rm -rf dist","pack:check":"npm run build && npm pack --dry-run"},"dependencies":{"jose":"^5.9.6"},"devDependencies":{"typescript":"^5"},"publishConfig":{"access":"public","provenance":true},"gitHead":"eebae499bc81261718a773262c3cf05c2dd2783b","_id":"@elixpo/accounts@1.0.4","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-lcURvmOVnUt6FZwd8IG9pkUoovTZ3ZJzlOwwOjKEm1imF00Me9ZfM/WaI+DSwkGcnAS+AcQsU0bot32pNY4Y/A==","shasum":"c087c67fba85ae7b1dca2794f8e5e488e5465118","tarball":"https://registry.npmjs.org/@elixpo/accounts/-/accounts-1.0.4.tgz","fileCount":39,"unpackedSize":61115,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7dsmaU5wvUQgnislGWkwSEc+pARpImRs4GSsGDHWDgAIgFvtVydmxyNoyKLXMmzR7LS98Gvp5aR+zo7UaJf/esZA="}]},"_npmUser":{"name":"elixpo","email":"ayushbhatt633@gmail.com"},"directories":{},"maintainers":[{"name":"elixpo","email":"ayushbhatt633@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/accounts_1.0.4_1788600694189_0.945521266244493"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-27T18:07:37.218Z","modified":"2026-09-05T09:31:34.529Z","1.0.1":"2026-08-27T18:07:37.532Z","1.0.2":"2026-08-27T19:01:49.776Z","1.0.4":"2026-09-05T09:31:34.367Z"},"bugs":{"url":"https://github.com/elixpo/accounts.elixpo/issues"},"license":"MIT","homepage":"https://accounts.elixpo.com/docs/lixaccounts","repository":{"type":"git","url":"git+https://github.com/elixpo/accounts.elixpo.git","directory":"packages/accounts"},"description":"Standards-first OAuth and OpenID Connect SDK for Elixpo Accounts","maintainers":[{"name":"elixpo","email":"ayushbhatt633@gmail.com"}],"readme":"# `@elixpo/accounts`\n\nEdge-safe OAuth 2.0 and OpenID Connect primitives for Elixpo Accounts.\n\nThe canonical SDK contract and release policy live in the\n[integration reference](https://github.com/elixpo/accounts.elixpo/blob/main/docs/README.md).\n\nNext.js and React adapters are tracked separately and are not exported yet.\n\n## Install\n\n```bash\nnpm install @elixpo/accounts\n```\n\n## Start authorization\n\n```ts\nimport { createAccountsClient } from \"@elixpo/accounts\";\n\nconst accounts = createAccountsClient({\n    issuer: \"https://accounts.elixpo.com\",\n    clientId: process.env.ELIXPO_CLIENT_ID!,\n    redirectUri: \"https://example.com/auth/callback\",\n    audience: \"example.com\",\n});\n\nconst { url, transaction } = await accounts.createAuthorizationRequest();\n// Store transaction in an encrypted, httpOnly, same-site session, then redirect.\n```\n\n## Complete authorization\n\n```ts\nimport { parseAuthorizationCallback } from \"@elixpo/accounts\";\n\nconst { code } = parseAuthorizationCallback(\n    request.url,\n    transaction.state,\n);\nconst tokens = await accounts.exchangeAuthorizationCode({\n    code,\n    codeVerifier: transaction.codeVerifier,\n});\nawait accounts.verifyIdToken(tokens.idToken!, transaction.nonce);\n```\n\n## Refresh and revoke\n\n```ts\nconst rotated = await accounts.refresh(tokens.refreshToken);\n// Atomically replace the stored token with rotated.refreshToken.\nawait accounts.revoke(rotated.refreshToken);\n```\n\n## Configuration boundaries\n\n- Browser-safe: issuer, client ID, redirect URI, audience.\n- Server-only: confidential client secret, refresh tokens, authorization\n  transactions, and all returned tokens.\n- Hosted Elixpo pages collect passwords, OTPs, passkeys, and MFA responses.\n  Third-party applications must not collect Elixpo credentials.\n\nThe SDK is optional. Generic OAuth/OIDC clients can use\n`/.well-known/oauth-authorization-server` and `/.well-known/openid-configuration`.\n","readmeFilename":"README.md"}