{"_id":"@atiproto/edge-oauth-client","_rev":"2-cb5d2813b07961201a3caad57f9006d5","name":"@atiproto/edge-oauth-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@atiproto/edge-oauth-client","version":"0.0.1","license":"MIT","_id":"@atiproto/edge-oauth-client@0.0.1","maintainers":[{"name":"kayakyakr","email":"kayakyakr@gmail.com"}],"dist":{"shasum":"0b67cca674d4654db4fc233b2081c6d293701852","tarball":"https://registry.npmjs.org/@atiproto/edge-oauth-client/-/edge-oauth-client-0.0.1.tgz","fileCount":12,"integrity":"sha512-F/x1ysXEhcNMgc3EDgjMG+9+TIPQutdkKG1zH8/FgKBAcybt7l7IhTiq9yqeJh+bS286/RPIB2t2KJiXXuu6Iw==","signatures":[{"sig":"MEYCIQCkhoWN1sxriZklU0UgOwLRnfAI6OLWCrRYPmEDfWUyiQIhAOqz5tJjNfBSt14aJrYcMzLrAg0H2q6pFl4Wm2VwFQe9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26599},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","source":"./src/index.ts","require":"./dist/index.js"}},"gitHead":"b41c46073aea7dacad7f55863567753449c80a31","scripts":{"test":"vitest run","build":"tsup && tsc --emitDeclarationOnly --declaration","prepack":"npm run build"},"_npmUser":{"name":"kayakyakr","email":"kayakyakr@gmail.com"},"_npmVersion":"11.9.0","description":"Edge-compatible ATProto OAuth client for Cloudflare Workers","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@atproto/jwk-jose":"^0.1.11","@atiproto/edge-resolvers":"*"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^4.1.4","typescript":"^6.0.2","@atproto/oauth-client":"^0.6.0","@cloudflare/workers-types":"^4.20260411.1"},"peerDependencies":{"@atproto/oauth-client":">=0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/edge-oauth-client_0.0.1_1776025864280_0.6087407324304266","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@atiproto/edge-oauth-client","version":"0.1.0","description":"Edge-compatible ATProto OAuth client for Cloudflare Workers","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"source":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup && tsc --emitDeclarationOnly --declaration","prepack":"npm run build","test":"vitest run"},"repository":{"type":"git","url":"git+https://github.com/Yakrware/atiproto.git","directory":"packages/edge-oauth-client"},"homepage":"https://atiproto.com/docs/edge-oauth","bugs":{"url":"https://github.com/Yakrware/atiproto/issues"},"license":"MIT","dependencies":{"@atiproto/edge-resolvers":"*","@atproto/jwk":"^0.6.0","@atproto/jwk-jose":"^0.1.11"},"devDependencies":{"@atproto/oauth-client":"^0.6.0","@cloudflare/workers-types":"^4.20260411.1","tsup":"^8.5.1","typescript":"^6.0.2","vitest":"^4.1.4"},"peerDependencies":{"@atproto/oauth-client":">=0.5.0"},"gitHead":"abb8dcbb82fca5013925ef300987e35500ff64f4","_id":"@atiproto/edge-oauth-client@0.1.0","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-z+T/OVv7WbtutTNHRlCZ2lD8VdgdkJnUnzm9ZGx+P5GJ1+6iJKXH50r+3oIzPEPLVHB1JXf3RoAFwQvnap43fg==","shasum":"490fc4974fc4ed42b59aebc909a8213eb1877704","tarball":"https://registry.npmjs.org/@atiproto/edge-oauth-client/-/edge-oauth-client-0.1.0.tgz","fileCount":13,"unpackedSize":31428,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBgBR3ENRMCu/xk3SB7JD7qQTrdbotXrdXPJe4Pnd+TOAiBUQe50n0jRocZQmOFL5/GTKNXBR9NAFC6kcG2kp2uHTg=="}]},"_npmUser":{"name":"kayakyakr","email":"kayakyakr@gmail.com"},"directories":{},"maintainers":[{"name":"kayakyakr","email":"kayakyakr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/edge-oauth-client_0.1.0_1776625701596_0.35665356991285724"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-12T20:31:04.131Z","modified":"2026-04-19T19:08:21.866Z","0.0.1":"2026-04-12T20:31:04.463Z","0.1.0":"2026-04-19T19:08:21.735Z"},"license":"MIT","description":"Edge-compatible ATProto OAuth client for Cloudflare Workers","maintainers":[{"name":"kayakyakr","email":"kayakyakr@gmail.com"}],"readme":"# @atiproto/edge-oauth-client\n\nEdge-compatible ATProto OAuth client for Cloudflare Workers.\n\n[![npm](https://img.shields.io/npm/v/@atiproto/edge-oauth-client)](https://www.npmjs.com/package/@atiproto/edge-oauth-client)\n\n- [Documentation](https://atiproto.com/docs/edge-oauth)\n- [GitHub](https://github.com/Yakrware/atiproto)\n\n## Installation\n\n```bash\nnpm install @atiproto/edge-oauth-client @atiproto/kv-oauth-state-store @atproto/oauth-client\n```\n\n## Usage\n\n```typescript\nimport { EdgeOAuthClient, patchGlobalRequestObject } from \"@atiproto/edge-oauth-client\";\nimport { KvStateStore, KvSessionStore } from \"@atiproto/kv-oauth-state-store\";\n\npatchGlobalRequestObject();\n\nconst client = new EdgeOAuthClient({\n  clientMetadata: {\n    client_id: \"https://your-app.example.com/oauth/client-metadata.json\",\n    client_name: \"My App\",\n    client_uri: \"https://your-app.example.com\",\n    redirect_uris: [\"https://your-app.example.com/oauth/callback\"],\n    grant_types: [\"authorization_code\", \"refresh_token\"],\n    response_types: [\"code\"],\n    scope: \"atproto transition:generic\",\n    token_endpoint_auth_method: \"none\",\n    application_type: \"web\",\n    dpop_bound_access_tokens: true,\n  },\n  stateStore: new KvStateStore(env.OAUTH_STATE_KV),\n  sessionStore: new KvSessionStore(env.OAUTH_SESSION_KV),\n});\n\n// Start OAuth flow\nconst url = await client.authorize(handle, { scope: \"atproto transition:generic\" });\n\n// Handle callback\nconst { session } = await client.callback(params);\n```\n\nSee the [full documentation](https://atiproto.com/docs/edge-oauth) for wrangler configuration, authorization flow, session restoration, and custom resolvers.\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://atiproto.com/docs/edge-oauth","repository":{"type":"git","url":"git+https://github.com/Yakrware/atiproto.git","directory":"packages/edge-oauth-client"},"bugs":{"url":"https://github.com/Yakrware/atiproto/issues"}}