{"_id":"@superfunctions/oauth-providers","_rev":"2-a99de25ef44352a6b56431760c325180","name":"@superfunctions/oauth-providers","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@superfunctions/oauth-providers","version":"0.0.1","keywords":["oauth","providers","superfunctions"],"author":{"name":"21n"},"license":"MIT","_id":"@superfunctions/oauth-providers@0.0.1","maintainers":[{"name":"21native","email":"npm@21n.org"}],"homepage":"https://github.com/21nCo/super-functions#readme","bugs":{"url":"https://github.com/21nCo/super-functions/issues"},"dist":{"shasum":"f5bb7568aeb7fd59ff642728771f89d8a04b1fff","tarball":"https://registry.npmjs.org/@superfunctions/oauth-providers/-/oauth-providers-0.0.1.tgz","fileCount":34,"integrity":"sha512-RCZBtur+lic4zhTLd8Zpd7QY92+dPf8fOaSGCfyRo+7L7skjVhgeoeUKx5zkXc/pU8NyMHeRU7Nq9TYxqZnTxg==","signatures":[{"sig":"MEYCIQC3PrRT1Ttnois/052Aew55MtWHJBMmgdygO2rAzIjisAIhALtTtuLAhjwmDiwiSVsQaK2C7XwSCRfofop/novHQ9ae","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57817},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"c566cac4b41a7b4a55ff128aad6471f275f03e22","scripts":{"lint":"echo 'lint not configured'","test":"vitest --config ./vitest.config.ts --run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest --config ./vitest.config.ts --watch"},"_npmUser":{"name":"21native","email":"npm@21n.org"},"repository":{"url":"git+https://github.com/21nCo/super-functions.git","type":"git","directory":"packages/oauth-providers"},"_npmVersion":"10.8.2","description":"OAuth provider descriptors for Superfunctions","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@superfunctions/oauth-core":"0.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.6.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/oauth-providers_0.0.1_1778751530135_0.5306556334072283","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@superfunctions/oauth-providers","version":"0.1.0","description":"OAuth provider descriptors for Superfunctions","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc","test":"vitest --config ./vitest.config.ts --run","test:watch":"vitest --config ./vitest.config.ts --watch","lint":"echo 'lint not configured'","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"keywords":["oauth","providers","superfunctions"],"author":{"name":"21n"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/21nCo/super-functions.git","directory":"packages/oauth-providers"},"publishConfig":{"access":"public"},"dependencies":{"@superfunctions/oauth-core":"0.1.0"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.6.0","vitest":"^3.2.4"},"_id":"@superfunctions/oauth-providers@0.1.0","gitHead":"e11bd81db6390dbc38303a5f3da6baadbaef0c8b","bugs":{"url":"https://github.com/21nCo/super-functions/issues"},"homepage":"https://github.com/21nCo/super-functions#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-FdmYcV//DfYZYeykhKH++wjB20z/++y3Ix+SvHiJUu9XrAB2uxaxbMWHKfG4Hs8c5/AU+XyTbZHhbD7p5hV4ZA==","shasum":"eb1f62408b0ce76add3c8e381816a0d500eac836","tarball":"https://registry.npmjs.org/@superfunctions/oauth-providers/-/oauth-providers-0.1.0.tgz","fileCount":34,"unpackedSize":57869,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCQ2bkfTYhyIy0b4mWX3o4dWIOA2E5kEDODAn0gBxMIvAIhAKGeslcd8YBEMiNJSa7j29XHid+wWfVFipgvRtQuIEWw"}]},"_npmUser":{"name":"21native","email":"npm@21n.org"},"directories":{},"maintainers":[{"name":"21native","email":"npm@21n.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oauth-providers_0.1.0_1787981828719_0.3863361279386197"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-14T09:38:50.036Z","modified":"2026-08-29T05:37:09.063Z","0.0.1":"2026-05-14T09:38:50.270Z","0.1.0":"2026-08-29T05:37:08.853Z"},"bugs":{"url":"https://github.com/21nCo/super-functions/issues"},"author":{"name":"21n"},"license":"MIT","homepage":"https://github.com/21nCo/super-functions#readme","keywords":["oauth","providers","superfunctions"],"repository":{"type":"git","url":"git+https://github.com/21nCo/super-functions.git","directory":"packages/oauth-providers"},"description":"OAuth provider descriptors for Superfunctions","maintainers":[{"name":"21native","email":"npm@21n.org"}],"readme":"# @superfunctions/oauth-providers\n\nCurated OAuth provider descriptors plus a shared provider-policy registry.\n\n## Install\n\n```bash\nnpm install @superfunctions/oauth-providers @superfunctions/oauth-core\n```\n\n## Quick Start\n\n```ts\nimport {\n  createDefaultProviderPolicyRegistry,\n  getOAuthProviderDescriptor,\n} from \"@superfunctions/oauth-providers\";\n\nconst github = getOAuthProviderDescriptor(\"github\");\nconst registry = createDefaultProviderPolicyRegistry();\n\nconst consent = await registry.validateScopes({\n  providerId: \"github\",\n  feature: \"profile.basic\",\n  requestedScopes: github.defaultScopes,\n  tenantId: \"tenant_1\",\n  userId: \"user_1\",\n  purpose: \"Connect a GitHub account\",\n});\n```\n\n## Package Boundary\n\n`@superfunctions/oauth-providers` owns:\n\n- curated provider descriptors\n- provider capability and scope policies\n- consent and policy-audit registry contracts\n\nIt does not perform token exchange, persist OAuth tokens, or expose routes.\n\n## Production Notes\n\n- `createDefaultProviderPolicyRegistry()` is an in-memory convenience path, not a durable compliance boundary.\n- For production consent/audit retention, pass explicit `consentStore` and `auditStore`.\n- Registry methods that persist policy state are async because store writes are now part of the contract.\n- If you need a provider not bundled here, pass your own descriptor into `@superfunctions/oauth-core` or `@superfunctions/oauth-flow`.\n\n## Related Packages\n\n- OAuth core primitives: [../oauth-core/README.md](../oauth-core/README.md)\n- Flow orchestration: [../oauth-flow/README.md](../oauth-flow/README.md)\n- Route factories: [../oauth-router/README.md](../oauth-router/README.md)\n","readmeFilename":"README.md"}