{"_id":"@blackcode_sa/aios-commercial-integration","_rev":"25-8b185a54eac292399423d951356a745a","name":"@blackcode_sa/aios-commercial-integration","dist-tags":{"latest":"1.0.20"},"versions":{"1.0.0":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.0","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.0","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"ead1d724b1efa1c8e871d2a7493de4817f99cae5","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.0.tgz","fileCount":30,"integrity":"sha512-csxCfpQytt6/9zFop4otKGQH3hEGZIAafFhvCijg227Af9dbd5TUKh3K4st8svqGFQfhuOjQkwVwThn9GJOMfQ==","signatures":[{"sig":"MEUCIH9fYSiSBPrhWJVAPKqAM7mPC9OUd1itJSh+WtoYcDw+AiEArrpmnw7f1IPvinOEoO6fL8ZJzqDBM5Pz2CQAJ37hRWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":217192},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e7f090f6b76e76a9edb4f0ade696ff36a81d809e","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4","electron-store":"^8.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"react":"^18.0.0","firebase":"^10.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.0_1750847789683_0.267594854547889","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.1","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.1","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"571a93de5650dc28bd04266944d46513319844bb","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.1.tgz","fileCount":30,"integrity":"sha512-gJKxZLUorY7N2hHJ8PXByY4X3zZZo4zkBVHOLdrc3sl0zOLGldketRIeHtIlDAvDB4p7I3wW1sOceHu3TQ2qYQ==","signatures":[{"sig":"MEUCIHL9qwKOJndaBo7uEHTXORj8x4fEqcHtm5G3tJiPVaGOAiEAul2FM3lipJcVai6fkJpaDVE/t8GRJfw5uqKoxW31G34=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":217339},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e7f090f6b76e76a9edb4f0ade696ff36a81d809e","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4","electron-store":"^8.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@types/react":"^18.0.0","@types/react-dom":"^18.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"react":"^18.0.0","firebase":"^10.0.0","react-dom":"^18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.1_1750847924850_0.32725320179246276","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.2","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.2","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"5de0a6cbc16d1956e8c3baa6bc02c75df2b9dca5","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.2.tgz","fileCount":30,"integrity":"sha512-HB8KgLZlaPnCssreZzPw1fMybfBXfDoDeOYWYgidEFBN8mZyospnVWUbKXT21jDKyH55aH999r1+CBhSveHEmQ==","signatures":[{"sig":"MEQCIEVdfQoA5nJUYf52Kp23aope933UPZSKyhWeLwMZPpwQAiAZ+M4AbX+2S0EMtLSE1co/snaB6xgQVGBzSjz/7M1fig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":217259},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e7f090f6b76e76a9edb4f0ade696ff36a81d809e","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.2_1750848575744_0.6252885648655668","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.3","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.3","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"3114f8a93e8777d10d55d69e52ae1830f2a14f07","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.3.tgz","fileCount":34,"integrity":"sha512-BwgafaekFdN1G40WHeXorRg2j/grpCflK1kHRJ6LBzCEkTS/vKj2hI47ygJAHqJXSpswMsRNrFUvnA1bQ8iR0g==","signatures":[{"sig":"MEUCICwTro3YDkHI+LDiM6XMb3ipKZRH0XRIjy/1ZB90vSSqAiEAzDlXFiagda6wnwWvJlB8VVKkhWcf+AMsGXX8ztAkULw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":247221},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"db67221ddab44cfc128aaa1b32444d65e02c998e","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.3_1750868109576_0.4483638098482374","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.4","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.4","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"653030e60a936df061b273e2979d02ca2ba8bf45","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.4.tgz","fileCount":34,"integrity":"sha512-xTVFlj5GbRzbFpmQF4kp+2ICFNpxzHJPiGp54EH9/O3NAnyhQAc8tOhadN4wz/LuW03dmLqyjdbt6I1fUaN0SA==","signatures":[{"sig":"MEUCIQCMIN5tfLvCQZXzm0O52dVXHF8Yq39w9oWrFi7W7+yK/wIgYvLRTdf+Hy/aOxCLP81hVSt6oaLBaed6h0hqssnVMF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":299981},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"a248faeeadec5d6dcdd190e9f0366399eb1ba899","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.4_1750926342999_0.045961583776477966","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.5","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.5","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"8f902075b3c96b236ee54a7af556ed5ec6cb9ae8","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.5.tgz","fileCount":34,"integrity":"sha512-TEo65BbDwBtqIHW7crl+vfk0OZXf+CRW/jD4jlLFekgXW3uXFgONIQCYB8yCnGzJoDyUAlzMDwUhfTgff6SNfg==","signatures":[{"sig":"MEQCIHtkAKPjvZaBWZNCNSu2SS17ec4KC8U/Douzgw3IArZtAiA8cOP18Qc1YiTUKAHObXkL70SfAeuBNKEQCWYj4d7SjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":337682},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"bd4772abec9dc805864925a2bdc5b0bf75938b41","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.5_1750952416515_0.14344735220372384","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.6","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.6","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"23b462c008cf411d8b74ed3b92d0b7905d2f6bb7","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.6.tgz","fileCount":34,"integrity":"sha512-Z/tcaglU6N77salA1I2RBaO6JnFVCuaV4hjt9nuvztKSvnLqfNeVThohxMfUm1tsIydqY1fNnKXMMWJ3WjNZgw==","signatures":[{"sig":"MEUCIQD0igUJw0Rx7NlBClwmg5hnCWeQ8wLC4jwQvxNRB0Wf1AIgcnfUBFoBYYCBYAgboPvBFrdAZdAu43ZVWF/aMOVYybg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":346267},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"bd4772abec9dc805864925a2bdc5b0bf75938b41","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.6_1751280636325_0.13817204584157006","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.7","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.7","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"8c40ea907b1d09731fd524ce82ceb80ab430672f","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.7.tgz","fileCount":34,"integrity":"sha512-yUARAYkPdkyKm7oKw1knrK6BBS3AYxLClWEuPzoD+OVUVNip7EeAxpxeKr3IC+8N9nkkklVl5kqjAnQ/++2CXw==","signatures":[{"sig":"MEUCIGuKNELyXGVMVKmINoVElyHJ4SA2INHBQj3A6g8z7aGGAiEAyxokHSI00jR7uo7rrlBR/gWSYugDmJqHXDEbhP/ZzVk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":346528},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.7_1751281240378_0.13515310188782892","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.8","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.8","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"3b497f0e5f4a412e10bdc48e5ab053ef5f5c3031","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.8.tgz","fileCount":34,"integrity":"sha512-VEVMAQ3gRM+ujq3rr7eMaANmqIttfgPEx+ojXyQjjITXXFaIgiX/4OVelaYMEOcggyVgCsk8gmNYfEwoBqf+nw==","signatures":[{"sig":"MEUCIByB8Ln69dr1TkTchU65sn6NAzkjccipcOmVueAkrqlVAiEAhwEQFi8QBl8Nj3DNy+5+VVRYYbn6vXgu8/x1avC+GKI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":347980},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.8_1751282041947_0.8559766141731069","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.9","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.9","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"491f08963bd9bdea8e21d310ccf05e1f59810129","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.9.tgz","fileCount":34,"integrity":"sha512-Jv2A/LzOSiBmtqGwFwWWf5ZKWsobf91jPpbSRauKWO8CwFHXV2GlqBC2axyeluTy+e7vuCRqjzloE7hS+ydzfg==","signatures":[{"sig":"MEYCIQDo3GeKtdSxGKpdzMuVIypjJz8Y0FJm5LbQw8Zji6qcXAIhAIKB6coa0Z0Sw+7WHu+gODMpf4DIbfqyNoCchL0pJTPr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":353920},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.9_1751282467137_0.22394378220859879","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.10","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.10","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"7179db0cbbe88609279c04c95dbf03012a6551f5","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.10.tgz","fileCount":34,"integrity":"sha512-kPFx1S0jzFaJ8d1Bju6xSt5G9D/ai8NezuH8KRAj6vC66OPBuhefn6tY5ntqBXG21sazCe5w/XCLQAJ5iaIDwQ==","signatures":[{"sig":"MEQCIAmoNTLz8uv8XGRX2MKCsQJ9Js9k09trGepB7LKGh6p8AiBhTpEiVHDg6Jl8wF7t0km+SsdgEJEn77/lSLZWR23dLw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":354193},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.10_1751282782285_0.09850154069282424","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.11","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.11","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"760844c856bd96ecd5f89a440165115133d99e56","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.11.tgz","fileCount":34,"integrity":"sha512-BpCeUNOYL2pZAXxrxDD2qkn59lGIlCbY7dgaZGlbgiqwhj3WtvtPi+oQA5zKLaCf0K0ATZ2xmRNUklhqGUR+EQ==","signatures":[{"sig":"MEYCIQD+PUbEGhI0J9brdpgxVXXL6+cWzr7qtMRVdHn6IUbCxgIhAMzdrxYeYLAibwMZxT/ZtOoxpFOLGQ4r+x0cCFLs0s0l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":356017},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.11_1751284064881_0.24374544395068365","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.12","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.12","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"d0ff3908d73f4f6a407dad1149ad7d7a8cfba369","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.12.tgz","fileCount":34,"integrity":"sha512-xsLfdqi9Phm/z+ku5lBCTDdZ575lWXg/kfk+bty+LLcM4/3i9KpzTFWsjevZB+409QeVuKntEnCiQbaVKZp8Aw==","signatures":[{"sig":"MEYCIQCFDe8CyvIDJRbAOpr/Spj4GBSR2GsMmP1112u8xWX4rwIhAM/NNOBFd2d1S6BMaXqmQ+UQr9rfca/+3VhFEFTaNkqT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":357772},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.12_1751284728417_0.6361285261265501","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.13","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.13","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"f01dee0a596affea90c6df1220df622d48f72cce","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.13.tgz","fileCount":34,"integrity":"sha512-FoYWdUjnF60rTj+7EKmqdD29fk1yfCLOXqjR57k3MgIker5WVjeUbnR1k0gWJb+5nv6ypo8bSpKORAV8yWvQzw==","signatures":[{"sig":"MEUCIHtNZWjcsXA5e9oCP8Zc5LFsRpRIclWva/TPMjvNuhmcAiEAtAptkmW1N3bVlwSfYnMN7mpka8KqmtpEdlO8viHHX6M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":370652},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"9e7adac80876b7776d050937754160895ac5eee4","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.13_1751291819620_0.516062994858669","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.14","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.14","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"1421576bf44f36ccab46de4812a9e98501cb1aee","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.14.tgz","fileCount":34,"integrity":"sha512-i1YrFi14OUnPC52DjTHV3lVB1ZujAuEtERZcs4N2s5GUtOgSXtZb+Tlud1m6qPXcCisxLcVmAKfYH3lT8NUzfQ==","signatures":[{"sig":"MEQCIDU8FDWL123aqj4aj5CBBcvdnaWhg5+FM22sk/XOllYTAiB57XyYlv1mkb36gYez90IgnMqz4gF6iQXA4MfIb79D6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":380357},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"5fb2ddc7e8dd4c717e6b85c60178040444d2de04","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.14_1751459168412_0.5850017111017045","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.15","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.15","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"a571976c6d0268fc10caba643f5d46ada939a341","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.15.tgz","fileCount":34,"integrity":"sha512-VR/hnPo2eIL0yJwd/DBH/uNa/y/HfkdSCFBJ5kcrQa71xVLC6GSr9QN93Gojw91ijBL0M1SM39RBqm4htGg2Lg==","signatures":[{"sig":"MEQCIBJya2O2slAyJvCmYcMzCGv3HBWY9uR7XzROK4T/CN0jAiB6cdO37hxwcEybREKxVibKMskC03zlZA6w+TpTM077QA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":396305},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"156035178a416c497b3198a036830b0692a86e4e","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.15_1751463226599_0.7417064785661804","host":"s3://npm-registry-packages-npm-production"}},"1.0.16":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.16","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.16","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"21caac97982c595deddf6c97fe593f35307fa859","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.16.tgz","fileCount":34,"integrity":"sha512-PErG5GkoRy66ZLGx2J/BTKB3jJ1rkrNpbkfV1Nt7MOMxg62dEjhAYtU5GPTTkwLMyPbrM1c699HOsbM9AOOyuA==","signatures":[{"sig":"MEUCIQCSmlnlWWPBjTbQcuwy1WPWJAKfANA0494d+6ywDWPolQIgUSwdu6EirGs5QVopQxzu4zQis+2ydnlZVrsiVJThI4k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":402528},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"28ba9258b8bac2f781ee0842dc8158c47bff7ab8","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.16_1751895516419_0.41166772673524776","host":"s3://npm-registry-packages-npm-production"}},"1.0.17":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.17","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.17","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"daffd826fe75c823eed89845a3e703fd0f58fb14","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.17.tgz","fileCount":34,"integrity":"sha512-UUWpwAzogB/CR6OCLXQuWxFwtiWbzZDzPp/eXkI85/B95NXpx28FTBC/DddgUoRPCVE3/WxPh8GUUqplZ6IxcA==","signatures":[{"sig":"MEUCIFSEeQw1cAMbQeXHwzjj1yCICT0kNsT2gcKB8LnqrpZgAiEAgSRbPAgBEr0B4QcywuzN+P1zFsF5iZA0lR99oNYvAXg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":402562},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"e0ccef49017dca5016308091619e63be3fe1f1dc","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","actor":{"name":"bojan_blackcode","type":"user","email":"bojan@blackcode.ch"},"email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.17_1752028888685_0.9414077525230129","host":"s3://npm-registry-packages-npm-production"}},"1.0.19":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.19","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.19","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"ca2a253af45c27c4a99c646751de274d5215f3b5","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.19.tgz","fileCount":38,"integrity":"sha512-Xn0TNPr7Kn26WJIR9TPh3BWVoxZCv3uIwnh1T+R70lNEnPru7AmsrqIEtKFycRLYPZdSQomR3CizTO2m4AuS7w==","signatures":[{"sig":"MEQCICWgeAHnmu0O9dmLxGYj1AP2ZcnkeDlxoyyzlet86clhAiBjdEj5DIVHhfyf0cupAPyGhZDSY+wys0qzQC5gHNol5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":561553},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"bd7dcbcc7a5688045fafd2023e93cb9a3d474e57","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.19_1752250583864_0.0031079102239004452","host":"s3://npm-registry-packages-npm-production"}},"1.0.20":{"name":"@blackcode_sa/aios-commercial-integration","version":"1.0.20","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","_id":"@blackcode_sa/aios-commercial-integration@1.0.20","maintainers":[{"name":"bojan_blackcode","email":"bojan@blackcode.ch"}],"homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"dist":{"shasum":"7fe56a6df0d1e488434501d38d834b406f39b8bc","tarball":"https://registry.npmjs.org/@blackcode_sa/aios-commercial-integration/-/aios-commercial-integration-1.0.20.tgz","fileCount":38,"integrity":"sha512-dq6Nt2soIM06wg9ngUXwsQWLfDtxfQE/GUdkHr0BS7dhCM0JPkPdax+lheBoZhPKEQmREPvrRKBFwrsWb6cegg==","signatures":[{"sig":"MEUCIAX8nH0qflzlQnwzty7e21iORrmfpnJX9en5uEkPs03yAiEAnbEEChiEzzE1nsbPcBTbjDfP6L9P5Fbil3iRYotcedU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":561532},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"fc035f1b24369d90fe8f72f6bca6b691ab4621ad","scripts":{"dev":"tsc --watch","lint":"eslint src/**/*.ts","test":"jest","build":"tsc","prepare":"npm run build","lint:fix":"eslint src/**/*.ts --fix","test:watch":"jest --watch","build:watch":"tsc --watch","publish:npm":"npm publish --registry=https://registry.npmjs.org","publish:github":"npm publish --registry=https://npm.pkg.github.com"},"_npmUser":{"name":"bojan_blackcode","email":"bojan@blackcode.ch"},"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"_npmVersion":"10.7.0","description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.22.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","eslint":"^8.0.0","ts-jest":"^29.0.0","typescript":"^5.0.0","@types/jest":"^29.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"peerDependencies":{"firebase":"^10.0.0 || ^11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/aios-commercial-integration_1.0.20_1752670606512_0.9495269020759656","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-06-25T10:36:29.611Z","modified":"2026-05-21T10:56:08.720Z","1.0.0":"2025-06-25T10:36:29.845Z","1.0.1":"2025-06-25T10:38:45.032Z","1.0.2":"2025-06-25T10:49:35.934Z","1.0.3":"2025-06-25T16:15:09.794Z","1.0.4":"2025-06-26T08:25:43.381Z","1.0.5":"2025-06-26T15:40:16.694Z","1.0.6":"2025-06-30T10:50:36.494Z","1.0.7":"2025-06-30T11:00:40.548Z","1.0.8":"2025-06-30T11:14:02.146Z","1.0.9":"2025-06-30T11:21:07.340Z","1.0.10":"2025-06-30T11:26:22.480Z","1.0.11":"2025-06-30T11:47:45.072Z","1.0.12":"2025-06-30T11:58:48.670Z","1.0.13":"2025-06-30T13:56:59.796Z","1.0.14":"2025-07-02T12:26:08.607Z","1.0.15":"2025-07-02T13:33:46.792Z","1.0.16":"2025-07-07T13:38:36.602Z","1.0.17":"2025-07-09T02:41:28.955Z","1.0.19":"2025-07-11T16:16:24.098Z","1.0.20":"2025-07-16T12:56:46.728Z"},"bugs":{"url":"https://github.com/blackcode-sa/AIOS_Commercial/issues"},"author":{"name":"AIOS Team","email":"office@metaworx.io"},"license":"MIT","homepage":"https://github.com/blackcode-sa/AIOS_Commercial#readme","keywords":["firebase","auth","stripe","billing","langgraph","electron","aios","2fa","mfa"],"repository":{"url":"git+https://github.com/blackcode-sa/AIOS_Commercial.git","type":"git"},"description":"Framework-agnostic commercial integration package for AIOS with Firebase Auth, Stripe billing, and LangGraph integration. Works with any JavaScript environment.","maintainers":[{"email":"mustneer@blackcode.ch","name":"mustneer.blackcode"},{"email":"balathanusan@blackcode.ch","name":"balathanusan-bc"},{"email":"bojan@blackcode.ch","name":"bojan_blackcode"},{"email":"branislav@blackcode.ch","name":"blarblackcode"},{"email":"andrea@blackcode.ch","name":"andreaedelman"},{"email":"mibrahim37612@gmail.com","name":"mibrahim2001"}],"readme":"# AIOS Commercial Integration\n\nA comprehensive NPM package for integrating Firebase Authentication, Stripe billing, and LangGraph token management into Electron applications. Built with TypeScript and designed for enterprise-grade security and scalability.\n\n## 🚀 Features\n\n### ✅ Zero-Configuration User Onboarding\n\n- **Automatic profile creation** with default preferences upon first sign-in.\n- **Enables automatic flows** for trial credit allocation and billing setup.\n- **Designed for immediate use**, allowing new users to quickly access features.\n- **Custom claims** for role-based access can be configured in your backend.\n\n### ✅ Complete Authentication System\n\n- **Email/Password** authentication with verification\n- **Social logins** (Google, Facebook, GitHub)\n- **Multi-factor authentication** (SMS, TOTP)\n- **Session management** with auto-refresh\n- **Profile management** with user preferences\n- **Platform-agnostic storage** with custom adapters\n\n### ✅ Production-Ready Security\n\n- **Input validation** with comprehensive Zod schemas\n- **Error handling** with user-friendly messages\n- **Re-authentication** for sensitive operations\n- **Rate limiting** protection\n\n### ✅ Cross-Platform Storage\n\n- **Storage adapter pattern** for platform independence\n- **Built-in adapters** for Web, Electron, React Native, Node.js\n- **Custom storage** implementation support\n- **Automatic fallbacks** for unsupported environments\n- **Node.js persistence** for server environments (Electron main, Pipedream, Langgraph servers)\n\n### ✅ Billing Integration Ready\n\n- **Stripe customer management**\n- **Subscription tracking** and status monitoring\n- **Usage-based billing** with detailed analytics\n- **Credit system** with atomic transactions\n\n## 🚀 Overview\n\nAIOS Commercial Integration provides a complete foundation for your 4-week commercial integration plan, combining:\n\n- **Firebase Authentication** with 2FA/MFA support\n- **Stripe Billing** integration for payments\n- **LangGraph** token usage tracking\n- **User Management** with role-based access\n- **Security Features** with input validation and error handling\n\n## 📦 Installation\n\n```bash\nnpm install @blackcode_sa/aios-commercial-integration\n```\n\n### Peer Dependencies\n\n```bash\nnpm install firebase\n```\n\n## 🏗️ Architecture\n\nThe package follows a **singleton service pattern** with centralized configuration management:\n\n```\n@blackcode_sa/aios-commercial-integration/\n├── src/\n│   ├── config/          # Configuration management\n│   ├── services/        # Business logic services\n│   ├── adapters/        # Platform-specific storage adapters\n│   ├── types/           # TypeScript definitions\n│   ├── validations/     # Input validation schemas\n│   ├── errors/          # Error handling system\n│   └── index.ts         # Main exports\n```\n\n## ⚡ Quick Start\n\n### 1. Initialize Configuration\n\n```typescript\nimport {\n  initializeAIOS,\n  createConfig,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\nconst config = createConfig(\n  {\n    firebase: {\n      apiKey: \"your-api-key\",\n      authDomain: \"your-project.firebaseapp.com\",\n      projectId: \"your-project-id\",\n      storageBucket: \"your-project.appspot.com\",\n      messagingSenderId: \"123456789\",\n      appId: \"your-app-id\",\n      functionsUrl: \"https://your-region-your-project.cloudfunctions.net\",\n    },\n    stripe: {\n      publishableKey: \"pk_test_...\",\n    },\n    langraph: {\n      apiUrl: \"https://your-langgraph-api.com\",\n      enableDirectCalls: true,\n    },\n  },\n  \"development\"\n); // or 'staging' | 'production'\n\n// Initialize the system\nawait initializeAIOS(config);\n```\n\n### 2. Use Authentication Service\n\n```typescript\nimport { AuthService } from \"@blackcode_sa/aios-commercial-integration\";\n\nconst authService = AuthService.getInstance();\nawait authService.initialize();\n\n// Sign up new user\nconst result = await authService.signUp({\n  email: \"user@example.com\",\n  password: \"SecurePass123!\",\n  displayName: \"John Doe\",\n  acceptTerms: true,\n});\n\n// Sign in existing user\nconst loginResult = await authService.signIn({\n  email: \"user@example.com\",\n  password: \"SecurePass123!\",\n});\n\n// Social authentication\nconst googleResult = await authService.signInWithGoogle();\n```\n\n### 3. Configure Platform-Specific Storage\n\nThe AuthService supports platform-agnostic authentication persistence through storage adapters with **automatic Node.js environment detection**:\n\n#### **🆕 Node.js Environments (Automatic)**\n\nThe AuthService now **automatically detects Node.js environments** and enables enhanced persistence for:\n\n- **Electron main processes**\n- **Pipedream workflows**\n- **Langgraph servers**\n- **Node.js servers and scripts**\n\n```typescript\nimport {\n  AuthService,\n  ElectronMainStorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\nimport Store from \"electron-store\";\n\n// The service automatically detects Node.js environment\nconst store = new Store({ name: \"aios-auth\" });\nconst storageAdapter = new ElectronMainStorageAdapter(store);\n\nconst authService = AuthService.getInstance(storageAdapter);\nawait authService.initialize();\n\n// ✅ Auth context is automatically restored from storage on startup\n// ✅ No need to re-authenticate users after app restarts\n// ✅ Seamless experience across all Node.js environments\n```\n\n**Key Benefits for Node.js Environments:**\n\n- **🔄 Automatic persistence restoration** on application startup\n- **🚀 Instant authentication state** without waiting for Firebase callbacks\n- **⚡ Zero-config setup** for server-side implementations\n- **🛡️ Secure storage** with validation and error recovery\n\n#### **Web Browser (Default)**\n\n```typescript\nimport { AuthService } from \"@blackcode_sa/aios-commercial-integration\";\n\n// Uses localStorage automatically in browser environments\nconst authService = AuthService.getInstance();\n```\n\n#### **Electron Main Process**\n\n```typescript\nimport Store from \"electron-store\";\nimport {\n  AuthService,\n  ElectronMainStorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\n// Set up electron-store\nconst store = new Store({\n  name: \"aios-auth\",\n  encryptionKey: \"your-encryption-key\", // Optional encryption\n});\n\n// Create storage adapter\nconst storageAdapter = new ElectronMainStorageAdapter(store);\n\n// Initialize AuthService with Electron storage\nconst authService = AuthService.getInstance(storageAdapter);\nawait authService.initialize();\n\n// ✅ Auth state is automatically restored from storage\n// ✅ Works seamlessly in Electron main process\n```\n\n#### **Electron Renderer Process**\n\n```typescript\nimport { ipcRenderer } from \"electron\";\nimport {\n  AuthService,\n  ElectronRendererStorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\n// Set up IPC storage adapter\nconst storageAdapter = new ElectronRendererStorageAdapter(ipcRenderer);\n\n// Initialize AuthService with IPC storage\nconst authService = AuthService.getInstance(storageAdapter);\nawait authService.initialize();\n```\n\n#### **React Native**\n\n```typescript\nimport AsyncStorage from \"@react-native-async-storage/async-storage\";\nimport {\n  AuthService,\n  ReactNativeStorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\n// Set up AsyncStorage adapter\nconst storageAdapter = new ReactNativeStorageAdapter(AsyncStorage);\n\n// Initialize AuthService with React Native storage\nconst authService = AuthService.getInstance(storageAdapter);\nawait authService.initialize();\n```\n\n#### **Node.js/Server**\n\n```typescript\nimport {\n  AuthService,\n  NodeStorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\n// Custom Node.js storage using file system\nconst storageAdapter = new NodeStorageAdapter({\n  storageDir: \"./data/auth\",\n  encryptionKey: \"your-encryption-key\",\n});\n\nconst authService = AuthService.getInstance(storageAdapter);\nawait authService.initialize();\n```\n\n#### **Custom Storage Implementation**\n\n```typescript\nimport {\n  AuthService,\n  StorageAdapter,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\nclass MyCustomStorageAdapter implements StorageAdapter {\n  isAvailable(): boolean {\n    return true; // Your availability check\n  }\n\n  async getItem(key: string): Promise<string | null> {\n    // Your get implementation\n    return await myStorage.get(key);\n  }\n\n  async setItem(key: string, value: string): Promise<void> {\n    // Your set implementation\n    await myStorage.set(key, value);\n  }\n\n  async removeItem(key: string): Promise<void> {\n    // Your remove implementation\n    await myStorage.remove(key);\n  }\n}\n\n// Use your custom adapter\nconst authService = AuthService.getInstance(new MyCustomStorageAdapter());\n```\n\n### 4. Set Up Multi-Factor Authentication\n\n```typescript\n// Set up SMS 2FA\nconst smsSetup = await authService.setupSMSMFA({\n  phoneNumber: \"+1234567890\",\n  displayName: \"My Phone\",\n});\n\n// Set up TOTP (Authenticator app) 2FA\nconst totpSetup = await authService.setupTOTPMFA({\n  displayName: \"My Authenticator\",\n});\n\n// Verify and enroll MFA\nawait authService.verifyAndEnrollMFA({\n  code: \"123456\",\n  verificationId: smsSetup.verificationId,\n  displayName: \"My Phone\",\n  type: \"sms\",\n});\n```\n\n## 🔐 Authentication Features\n\n### **NEW: Automatic User Onboarding**\n\n- ✅ **Streamlined setup** - A user document is automatically created in Firestore on the first sign-in.\n- ✅ **Enables trial credits** - The system is designed for other services to easily grant trial credits to new users.\n- ✅ **Profile with preferences** created with sensible defaults.\n- ✅ **Foundation for billing** - The user's profile is ready for a billing service to attach a subscription.\n- ✅ **Custom claims** can be configured on your backend to manage authorization.\n\n### Basic Authentication\n\n- ✅ Email/Password sign up and sign in\n- ✅ Email verification with resend capability\n- ✅ Password reset and change\n- ✅ **Automatic profile creation** with default preferences\n- ✅ Session management with automatic token refresh\n\n### Social Authentication\n\n- ✅ Google Sign-In with **automatic profile creation**.\n- ✅ Facebook Sign-In with a flow **ready for billing setup**.\n- ✅ GitHub Sign-In with a flow **ready for trial credit allocation**.\n- ✅ **Unified user experience** regardless of auth method.\n\n### Multi-Factor Authentication (2FA/MFA)\n\n- ✅ SMS-based verification\n- ✅ TOTP Authenticator apps (Google Authenticator, Authy)\n- ✅ Multiple factor enrollment and management\n- ✅ QR code generation for TOTP setup\n- ✅ Factor removal and management\n\n### Enhanced Security Features\n\n- ✅ Input validation with comprehensive Zod schemas\n- ✅ Re-authentication for sensitive operations\n- ✅ User-friendly error handling with detailed messages\n- ✅ Rate limiting protection\n- ✅ Secure token management with refresh capability\n\n### Authentication Persistence\n\n- ✅ **Cross-platform compatibility** - Works in web, Electron, React Native, Node.js\n- ✅ **Firebase token persistence** - Automatic token refresh and validation\n- ✅ **Backup auth context** - Non-sensitive data cached for immediate access\n- ✅ **Seamless app restarts** - Users stay logged in across app sessions\n- ✅ **Storage flexibility** - Choose your preferred storage backend\n- ✅ **Automatic fallbacks** - Graceful degradation when storage unavailable\n\n## 🎯 Integration Patterns\n\n### Electron Application Integration\n\n```typescript\n// In your main Electron process\nimport {\n  initializeAIOS,\n  AuthService,\n} from \"@blackcode_sa/aios-commercial-integration\";\n\nclass AppManager {\n  private authService: AuthService;\n\n  async initialize() {\n    // Initialize AIOS configuration\n    await initializeAIOS(yourConfig);\n\n    // Get auth service instance\n    this.authService = AuthService.getInstance();\n    await this.authService.initialize();\n\n    // Monitor authentication state\n    const authContext = this.authService.getAuthContext();\n\n    // Check if user has credits for LLM calls\n    if (authContext.isAuthenticated && authContext.availableCredits > 0) {\n      console.log(\n        `User ready for LLM calls with ${authContext.availableCredits} credits`\n      );\n    }\n  }\n\n  async handleUserSignup(email: string, password: string, displayName: string) {\n    try {\n      // Automatic user document creation happens here!\n      const result = await this.authService.signUp({\n        email,\n        password,\n        displayName,\n        acceptTerms: true,\n      });\n\n      if (result.status === \"requires_email_verification\") {\n        // The user document is created, enabling other services to provision\n        // trial credits or a default billing plan.\n        console.log(\"User created and ready for feature access!\");\n        return result;\n      }\n    } catch (error) {\n      console.error(\"Signup failed:\", error);\n    }\n  }\n}\n```\n\n### React Component Integration\n\n```typescript\nimport { AuthService } from \"@blackcode_sa/aios-commercial-integration\";\nimport { useState, useEffect } from \"react\";\n\nfunction AuthenticatedApp() {\n  const [authService] = useState(() => AuthService.getInstance());\n  const [userProfile, setUserProfile] = useState(null);\n  const [credits, setCredits] = useState(0);\n\n  useEffect(() => {\n    const loadUserData = async () => {\n      if (authService.isAuthenticated()) {\n        // Get complete user profile with billing info\n        const profile = await authService.getUserProfile();\n        setUserProfile(profile);\n        setCredits(profile.availableCredits);\n      }\n    };\n\n    loadUserData();\n  }, [authService]);\n\n  const handleLogin = async (email: string, password: string) => {\n    try {\n      const result = await authService.signIn({ email, password });\n      if (result.status === \"success\") {\n        // Reload user data after login\n        const profile = await authService.getUserProfile();\n        setUserProfile(profile);\n        setCredits(profile.availableCredits);\n      }\n    } catch (error) {\n      // Handle error\n    }\n  };\n\n  return (\n    <div>\n      {userProfile && (\n        <div>\n          <h1>Welcome, {userProfile.displayName}!</h1>\n          <p>Available Credits: {credits}</p>\n          <p>Plan: {userProfile.plan}</p>\n          <p>MFA Enabled: {userProfile.mfaEnabled ? \"Yes\" : \"No\"}</p>\n        </div>\n      )}\n    </div>\n  );\n}\n```\n\n## 🏢 Enterprise Features\n\n### **Automatic User Lifecycle Management**\n\n- **Profile Creation** - Default preferences and settings.\n- **Enables Credit Allocation** - System is designed for easy allocation of trial credits on signup.\n- **Billing Setup** - Ready for rate limits and plan configuration by a billing service.\n- **Custom Claims** - Role-based access control.\n\n### User Roles and Permissions (Auto-Configured)\n\n- `FREE_USER` - Basic access with trial credits (default)\n- `PRO_USER` - Enhanced features with subscription\n- `ENTERPRISE_USER` - Full feature access\n- `ADMIN` - Administrative privileges\n\n### Billing Integration (Ready-to-Use)\n\n- **Stripe customer management** with automatic setup\n- **Subscription tracking** with real-time status\n- **Usage-based billing** with detailed analytics\n- **Credit system** with atomic transaction support\n\n### Usage Tracking (Built-in)\n\n- **LangGraph integration** with usage decorators\n- **Token consumption monitoring** with cost tracking\n- **API usage analytics** with performance metrics\n- **Cost tracking** with per-model pricing\n\n## 🛠️ Configuration\n\n### Environment-Specific Configs\n\n```typescript\nimport { createConfig } from \"@blackcode_sa/aios-commercial-integration\";\n\n// Development environment\nconst devConfig = createConfig(baseConfig, \"development\");\n// Features: No encryption, analytics disabled, debug mode on, extra logging\n\n// Staging environment\nconst stagingConfig = createConfig(baseConfig, \"staging\");\n// Features: Encryption enabled, analytics on, debug mode on, trial credits\n\n// Production environment\nconst prodConfig = createConfig(baseConfig, \"production\");\n// Features: Full encryption, analytics on, debug off, MFA required\n```\n\n### Advanced User Profile Configuration\n\n```typescript\n// Configure default user preferences\nconst config = {\n  // ... firebase config\n  userDefaults: {\n    preferences: {\n      theme: \"light\",\n      notifications: true,\n      language: \"en\",\n      timezone: \"UTC\",\n      defaultModel: \"gpt-4\",\n      maxTokensPerRequest: 4000,\n      autoSaveChats: true,\n    },\n    credits: {\n      trialAmount: 1000,\n      welcomeBonus: 500, // Additional credits for first-time users\n    },\n    billing: {\n      plan: \"free\",\n      rateLimits: {\n        requestsPerMinute: 10,\n        requestsPerHour: 200,\n        requestsPerDay: 2000,\n      },\n    },\n  },\n};\n```\n\n### Health Monitoring\n\n```typescript\nimport { getConfigManager } from \"@blackcode_sa/aios-commercial-integration\";\n\nconst configManager = getConfigManager();\nconst health = await configManager.getHealthStatus();\n\nconsole.log(health);\n// {\n//   status: \"healthy\" | \"degraded\" | \"down\",\n//   services: {\n//     firebase: true,\n//     auth: true,\n//     firestore: true,\n//     functions: true,\n//   },\n//   timestamp: Date\n// }\n```\n\n## 🚀 What's New in This Version\n\n### ✅ Automatic User Onboarding\n\n- **Streamlined setup** for new users with automatic profile creation.\n- **Enables automatic trial credits** and billing plan assignment.\n- **Complete profile creation** with sensible defaults.\n- **Immediate feature access** capability after registration.\n\n### ✅ Enhanced Profile Management\n\n- **Comprehensive user profiles** with preferences\n- **Real-time billing status** integration\n- **MFA status** and security settings\n- **Customizable user preferences** (theme, notifications, etc.)\n\n### ✅ Streamlined Authentication Flow\n\n- **Unified experience** across all auth methods (email, social)\n- **Automatic billing setup** regardless of signup method\n- **Instant credit allocation** for immediate usage\n- **Custom claims** configured automatically\n\n### ✅ Production-Ready Security\n\n- **Input validation** with Zod schemas throughout\n- **Comprehensive error handling** with user-friendly messages\n- **Rate limiting** protection at multiple levels\n- **MFA support** with SMS and TOTP options\n\n## 💻 Developer Experience\n\n### **Simplified Integration**\n\n```typescript\n// Before: Complex setup required\n// After: One line integration\nconst authService = AuthService.getInstance();\nawait authService.signUp(userDetails); // Core user document and profile created automatically.\n```\n\n### **Rich Type Safety**\n\n```typescript\ninterface UserProfile {\n  uid: string;\n  email: string;\n  displayName: string;\n  preferences: UserPreferences;\n  mfaEnabled: boolean;\n  plan: \"free\" | \"starter\" | \"advanced\" | \"pro\";\n  availableCredits: number;\n  subscriptionStatus: \"trialing\" | \"active\" | \"canceled\";\n}\n```\n\n### **Comprehensive Error Handling**\n\n```typescript\ntry {\n  await authService.signUp(userData);\n} catch (error) {\n  if (error.code === \"auth/email-already-in-use\") {\n    // Handle existing user\n  } else if (error.code === \"auth/weak-password\") {\n    // Handle weak password\n  }\n  // Detailed error information provided\n}\n```\n\n## 🎯 Migration from Basic Auth\n\nIf you're upgrading from a basic authentication system:\n\n### ✅ Automatic Migration Benefits\n\n- **Existing users** get automatic profile creation on next login\n- **Enables trial credits** to be granted to all existing users\n- **Billing structure** can be created retroactively\n- **Zero breaking changes** to existing authentication calls\n\n### Migration Example\n\n```typescript\n// Your existing code works as-is:\nconst result = await authService.signIn({ email, password });\n\n// But now you get additional benefits:\nconst profile = await authService.getUserProfile();\nconsole.log(`Welcome back! You have ${profile.availableCredits} credits`);\n```\n\nThis enhanced SDK provides a **complete commercial authentication solution** with automatic user onboarding, trial credit system, and production-ready security features. Perfect for Electron applications requiring immediate LLM usage capability.\n\n## 📚 API Reference\n\nHere are the core components of the AIOS Commercial Integration package. For more detailed documentation, please refer to the README files within the `src` directory.\n\n### Authentication Service (`AuthService`)\n\nThe `AuthService` provides a complete solution for user authentication and management, with automatic user profile creation in Firestore on first sign-in.\n\n**Key Methods:**\n\n- `signUp(data)`: Creates a new user with email/password.\n- `signIn(data)`: Signs in an existing user.\n- `signInWithGoogle()`, `signInWithFacebook()`, `signInWithGitHub()`: Handles social authentication.\n- `signOut()`: Clears the user session.\n- `getUserProfile()`: Fetches a consolidated user profile including preferences and billing status.\n- `setupSMSMFA(data)`, `setupTOTPMFA(data)`: Manages multi-factor authentication setup.\n- `verifyAndEnrollMFA(data)`: Verifies and completes MFA enrollment.\n\n**Example: User Sign-Up**\n\n```typescript\nconst authService = AuthService.getInstance();\nconst result = await authService.signUp({\n  email: \"user@example.com\",\n  password: \"SecurePass123!\",\n  displayName: \"John Doe\",\n  acceptTerms: true,\n});\n\nif (result.status === \"requires_email_verification\") {\n  // The user document is created, enabling other services to provision\n  // trial credits or a default billing plan.\n  console.log(\"User created and ready for feature access!\");\n}\n```\n\n### Billing Service (`BillingService`)\n\nThe `BillingService` manages subscriptions, token credits, and usage tracking. It reads data in real-time from Firestore and uses secure cloud functions for payment operations.\n\n**Key Features:**\n\n- **Real-time Billing State**: Get live updates on a user's token balance and subscription status.\n- **Token Management**: Track individual token batches from purchases or subscriptions.\n- **Subscription Management**: Fetch and subscribe to a user's Stripe subscriptions.\n- **Usage Tracking**: Access detailed usage history for conversations and messages.\n- **Secure Payments**: Integrates with Stripe for checkout and customer portal sessions.\n\n**Key Methods:**\n\n- `getBillingState()`: Gets the user's aggregated billing state.\n- `subscribeToBillingState(callback)`: Subscribes to real-time billing state updates.\n- `getTokenBatches()`: Retrieves all active token batches.\n- `getUserSubscriptions()`: Fetches user subscription records created by Stripe webhooks.\n- `subscribeToUserSubscriptions(callback)`: Subscribes to real-time subscription changes.\n- `getUsageConversations(options)`: Gets a paginated history of usage conversations.\n- `createCheckoutSession(request)`: Creates a Stripe checkout session for purchases.\n- `createPortalSession(request)`: Creates a Stripe customer portal session for subscription management.\n\n### Core Data Types\n\nThe package is strongly typed with TypeScript. Here are some of the central interfaces:\n\n**`UserProfile`**: A consolidated view of the user.\n\n```typescript\ninterface UserProfile {\n  uid: string;\n  email: string;\n  displayName: string;\n  mfaEnabled: boolean;\n  plan: \"free\" | \"starter\" | \"advanced\" | \"pro\";\n  availableCredits: number;\n  subscriptionStatus: \"trialing\" | \"active\" | \"canceled\" | \"past_due\";\n  // ... and more\n}\n```\n\n**`BillingState`**: Real-time summary of a user's billing status.\n\n```typescript\ninterface BillingState {\n  tokenCredits: number;\n  activeBatches: number;\n  planType: \"free\" | \"starter\" | \"advanced\" | \"pro\";\n  subscriptionStatus:\n    | \"active\"\n    | \"canceled\"\n    | \"pending_cancellation\"\n    | \"past_due\"\n    | \"trialing\";\n  // ... and more\n}\n```\n\n**`UserSubscription`**: Represents a single user subscription from Stripe.\n\n```typescript\ninterface UserSubscription {\n  subscriptionId: string;\n  userId: string;\n  subscriptionStatus:\n    | \"active\"\n    | \"canceled\"\n    | \"pending_cancellation\"\n    | \"past_due\"\n    | \"trialing\"\n    | \"incomplete\";\n  plan: \"free\" | \"starter\" | \"advanced\" | \"pro\";\n  currentPeriodEnd: Date | null;\n  // ... and more\n}\n```\n\n### Input Validation\n\nAll service inputs are validated using Zod schemas to ensure data integrity and security.\n\n**Validation Philosophy:**\n\n- **Security-First**: All inputs are sanitized to prevent common vulnerabilities.\n- **Type Safety**: Zod schemas provide runtime type checking that integrates seamlessly with TypeScript.\n- **Detailed Errors**: Get clear error messages when validation fails.\n\n**Example: Password Schema**\n\n```typescript\nimport { z } from \"zod\";\n\nexport const passwordSchema = z\n  .string()\n  .min(8, \"Password must be at least 8 characters\")\n  .regex(/[A-Z]/, \"Password must contain at least one uppercase letter\")\n  .regex(/[a-z]/, \"Password must contain at least one lowercase letter\")\n  .regex(/\\d/, \"Password must contain at least one number\")\n  .regex(/[@$!%*?&]/, \"Password must contain at least one special character\");\n```\n\nAll schemas are exported and can be used for client-side validation in your application.\n\n## 🔧 Development\n\n### Building the Package\n\n```bash\nnpm run build          # Build TypeScript\nnpm run build:watch    # Build with watch mode\nnpm run dev           # Development mode with watch\n```\n\n### Testing\n\n```bash\nnpm test              # Run tests\nnpm run test:watch    # Run tests in watch mode\n```\n\n### Linting\n\n```bash\nnpm run lint          # Check code style\nnpm run lint:fix      # Fix linting issues\n```\n\n## 🚀 Deployment\n\n### NPM Publishing\n\n```bash\nnpm run build         # Build the package\nnpm publish          # Publish to NPM registry\n```\n\n### Version Management\n\nThe package follows semantic versioning (semver):\n\n- `MAJOR.MINOR.PATCH`\n- Breaking changes increment MAJOR\n- New features increment MINOR\n- Bug fixes increment PATCH\n\n## 🔒 Security Considerations\n\n### Production Checklist\n\n- ✅ Use environment-specific configurations\n- ✅ Enable encryption for production\n- ✅ Require MFA for admin users\n- ✅ Implement proper error logging\n- ✅ Monitor authentication metrics\n- ✅ Regular security audits\n\n### Best Practices\n\n- Store sensitive config in environment variables\n- Use HTTPS only in production\n- Implement proper CORS policies\n- Regular dependency updates\n- Monitor for security vulnerabilities\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests for new functionality\n5. Run linting and tests\n6. Submit a pull request\n\n## 📄 License\n\nMIT License - see LICENSE file for details\n\n## 🆘 Support\n\nFor issues and questions:\n\n- Create an issue on GitHub\n- Check existing documentation\n- Review the type definitions for API details\n\n## 🗺️ Roadmap\n\n### Current Version (1.0.3)\n\n- ✅ Firebase Authentication with 2FA/MFA support\n- ✅ Platform-agnostic storage adapters\n- ✅ Cross-platform compatibility (Web, Electron, React Native, Node.js)\n- ✅ TypeScript support with comprehensive type definitions\n- ✅ Input validation with Zod schemas\n- ✅ Comprehensive error handling system\n- ✅ Authentication persistence across app restarts\n- ✅ Custom storage adapter implementation support\n\n### Upcoming Features\n\n- 🔄 Stripe billing integration\n- 🔄 LangGraph usage tracking and analytics\n- 🔄 User onboarding flows\n- 🔄 Advanced security analytics\n- 🔄 Audit logging and security events\n- 🔄 Real-time usage monitoring\n- 🔄 Enhanced billing management\n\n---\n\n**Built with ❤️ for the AIOS ecosystem**\n\n## 🖥️ Electron Social Authentication\n\n⚠️ **CRITICAL SECURITY WARNING** ⚠️\n\n**The current client-side OAuth implementation has serious security vulnerabilities and should ONLY be used for testing.**\n\n**🔴 Security Issues:**\n\n- OAuth client secrets exposed in client code\n- Secrets extractable through app reverse-engineering\n- Violates OAuth 2.0 security standards\n- Not suitable for production deployment\n\n**✅ For Testing:** Use client-side methods during development  \n**🛡️ For Production:** Use secure server-side token exchange via cloud function\n\n---\n\n### Problem with Standard Social Login\n\nFirebase's `signInWithPopup` doesn't work in Electron because it requires browser popup functionality. This affects Google, Facebook, and GitHub social authentication in native Electron apps.\n\n### Solution Options\n\n#### **Option 1: Client-Side (Testing Only) ⚠️**\n\nFor development and testing, you can use the built-in client-side OAuth methods:\n\n```typescript\nimport { AuthService } from \"@blackcode_sa/aios-commercial-integration\";\n\nconst authService = AuthService.getInstance();\n\n// ⚠️ TESTING ONLY - Client secrets exposed\nconst result = await authService.signInWithSocialElectron(\"google\");\n```\n\n#### **Option 2: Server-Side (Production) 🛡️**\n\nFor production, use the secure cloud function approach:\n\n**Step 1: Cloud Function Available**\n\n- URL: `https://us-central1-aios-ce15f.cloudfunctions.net/exchangeOAuthToken`\n- Status: ✅ Deployed and configured\n- Access: ✅ Public (authenticated users only)\n\n**Step 2: Secure Implementation**\n\n```typescript\n// 1. Get authorization code from OAuth flow\nconst authCode = await electronOAuthFlow(provider);\n\n// 2. Exchange via secure cloud function\nconst response = await fetch(\n  \"https://us-central1-aios-ce15f.cloudfunctions.net/exchangeOAuthToken\",\n  {\n    method: \"POST\",\n    headers: { \"Content-Type\": \"application/json\" },\n    body: JSON.stringify({\n      provider: \"google\",\n      authCode: authCode,\n      idToken: await user.getIdToken(), // Optional\n    }),\n  }\n);\n\nconst { accessToken } = await response.json();\n\n// 3. Sign in with Firebase\nconst credential = GoogleAuthProvider.credential(null, accessToken);\nawait signInWithCredential(auth, credential);\n```\n\n### Configuration\n\n#### **Development Configuration (Testing)**\n\n```typescript\nimport { createConfig } from \"@blackcode_sa/aios-commercial-integration\";\n\nconst config = createConfig({\n  firebase: {\n    /* your config */\n  },\n  oauth: {\n    redirectUri: \"http://localhost:3000/oauth/callback\",\n    google: {\n      clientId: \"your-google-client-id\",\n      clientSecret: process.env.GOOGLE_CLIENT_SECRET, // ⚠️ Testing only\n    },\n    // Only include secrets for development\n  },\n});\n```\n\n#### **Production Configuration (Secure)**\n\n```typescript\nconst config = createConfig({\n  firebase: {\n    /* your config */\n  },\n  oauth: {\n    redirectUri: \"http://localhost:3000/oauth/callback\",\n    cloudFunctionUrl:\n      \"https://us-central1-aios-ce15f.cloudfunctions.net/exchangeOAuthToken\",\n    useSecureExchange: true, // Use cloud function instead of client-side\n    // No client secrets in production config\n  },\n});\n```\n\n### Migration Path\n\n1. **Phase 1 (Current)**: Use client-side for testing and development\n2. **Phase 2 (Coming Soon)**: Implement `signInWithSocialElectronSecure()` method\n3. **Phase 3 (Production)**: Remove client secrets, use cloud function only\n\n### OAuth Provider Setup\n\n**Google Cloud Console:**\n\n1. Create OAuth 2.0 credentials\n2. Add `http://localhost:3000/oauth/callback` to authorized redirect URIs\n\n**Facebook Developers:**\n\n1. Create new app with Facebook Login\n2. Add `http://localhost:3000/oauth/callback` to valid OAuth redirect URIs\n\n**GitHub OAuth Apps:**\n\n1. Create new OAuth app in Developer settings\n2. Set authorization callback URL to `http://localhost:3000/oauth/callback`\n\n### Security Checklist\n\n**✅ For Testing:**\n\n- [ ] Store secrets in environment variables\n- [ ] Never commit secrets to version control\n- [ ] Mark as development-only in documentation\n\n**🛡️ For Production:**\n\n- [ ] Use cloud function for token exchange\n- [ ] Remove client secrets from app\n- [ ] Set Firebase Function environment variables\n- [ ] Test secure OAuth flow\n- [ ] Deploy with production configuration\n\nFor detailed implementation examples, see the [Services Documentation](./src/services/README.md#electron-social-authentication).\n\n## 🔧 Advanced Configuration\n","readmeFilename":"README.md"}