{"_id":"@superfunctions/oauth-providers","_rev":"3-e866543fe6b018e7ebb3f277f197d4fd","name":"@superfunctions/oauth-providers","dist-tags":{"latest":"0.1.1"},"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","keywords":["oauth","providers","superfunctions"],"author":{"name":"21n"},"license":"MIT","_id":"@superfunctions/oauth-providers@0.1.0","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":"eb1f62408b0ce76add3c8e381816a0d500eac836","tarball":"https://registry.npmjs.org/@superfunctions/oauth-providers/-/oauth-providers-0.1.0.tgz","fileCount":34,"integrity":"sha512-FdmYcV//DfYZYeykhKH++wjB20z/++y3Ix+SvHiJUu9XrAB2uxaxbMWHKfG4Hs8c5/AU+XyTbZHhbD7p5hV4ZA==","signatures":[{"sig":"MEYCIQCQ2bkfTYhyIy0b4mWX3o4dWIOA2E5kEDODAn0gBxMIvAIhAKGeslcd8YBEMiNJSa7j29XHid+wWfVFipgvRtQuIEWw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57869},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"e11bd81db6390dbc38303a5f3da6baadbaef0c8b","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.1.0"},"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.1.0_1787981828719_0.3863361279386197","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@superfunctions/oauth-providers@0.1.1","bugs":{"url":"https://github.com/21nCo/superfunctions/issues"},"dist":{"shasum":"c18993b40415f8a4879b4382e1f4c8e4336744cc","tarball":"https://registry.npmjs.org/@superfunctions/oauth-providers/-/oauth-providers-0.1.1.tgz","fileCount":34,"integrity":"sha512-n/tKcDsHbpLOFh3fyO5Y52WMEWRTCjeHIz4lSdYZBxfpEsFSBric4rbVWCiYzcthVWRw4WuUmM4PteWf3A+jSA==","signatures":[{"sig":"MEUCIFJZuJZG6RUeihI7JD6DBMtYjh6o2LqAaP4f7CY00lV7AiEAnuqWNnZEm1jStJQFIUYwnlyZ1yzzhslFkYz8+6W9smg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA3kDD73M79Yk1+w1ZOJQ1yL7NYVDCsfrfwzxYaJaOy0AiBS2C10xrLDNIlWa5GUALZVDskOS0UOChIf85mk1BU/VA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@superfunctions%2foauth-providers@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57954},"main":"./dist/index.js","name":"@superfunctions/oauth-providers","type":"module","_from":"file:/home/runner/work/_temp/npm-package/superfunctions-oauth-providers-0.1.1.tgz","types":"./dist/index.d.ts","author":{"name":"21n"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"699d9d09932199d660333c57fe7bc646492ea3bf","license":"MIT","scripts":{"lint":"tsc --noEmit","test":"vitest --config ./vitest.config.ts --run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest --config ./vitest.config.ts --watch"},"version":"0.1.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"a2a21bc9-d601-4ea1-9d49-2daee60e955e"}},"homepage":"https://github.com/21nCo/superfunctions#readme","keywords":["oauth","providers","superfunctions"],"_resolved":"/home/runner/work/_temp/npm-package/superfunctions-oauth-providers-0.1.1.tgz","_integrity":"sha512-n/tKcDsHbpLOFh3fyO5Y52WMEWRTCjeHIz4lSdYZBxfpEsFSBric4rbVWCiYzcthVWRw4WuUmM4PteWf3A+jSA==","repository":{"url":"git+https://github.com/21nCo/superfunctions.git","type":"git","directory":"packages/oauth-providers"},"_npmVersion":"11.21.0","description":"OAuth provider descriptors for Superfunctions","directories":{},"maintainers":[{"name":"21native","email":"npm@21n.org"}],"_nodeVersion":"22.23.4","dependencies":{"@superfunctions/oauth-core":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","typescript":"^5.6.0","@types/node":"^22.0.0","@superfunctions/oauth-http":"0.2.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/oauth-providers_0.1.1_1794345673337_0.9252021744411744"}}},"time":{"created":"2026-05-14T09:38:50.036Z","modified":"2026-11-10T21:21:13.972Z","0.0.1":"2026-05-14T09:38:50.270Z","0.1.0":"2026-08-29T05:37:08.853Z","0.1.1":"2026-11-10T21:21:13.443Z"},"bugs":{"url":"https://github.com/21nCo/superfunctions/issues"},"author":{"name":"21n"},"license":"MIT","homepage":"https://github.com/21nCo/superfunctions#readme","keywords":["oauth","providers","superfunctions"],"repository":{"url":"git+https://github.com/21nCo/superfunctions.git","type":"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"}