{"_id":"@bota-apps/auth-client","_rev":"11-0670f2a4b092a8404d3f01269f885119","name":"@bota-apps/auth-client","dist-tags":{"latest":"0.6.3"},"versions":{"0.2.0":{"name":"@bota-apps/auth-client","version":"0.2.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.2.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/bota-apps#readme","bugs":{"url":"https://github.com/bota-apps/bota-apps/issues"},"dist":{"shasum":"c88a0ad98f02b7b48776b5383e01713c921330dd","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.2.0.tgz","fileCount":22,"integrity":"sha512-IWuspQFg8YS/uHdrP0quPl0JWu6R8TEl/OJK0spueJYmjG3+Z49TrzHqZjBOhWH4h2LmevbmkMY2bg8ohikFpQ==","signatures":[{"sig":"MEUCIQDd6n4z4RVwN4dDwoD+Fd2u+7fspT3wIWZGGmn1POOTZAIgAJVCiwKnbHVkxfAvkJ1oXWpJz4s2mFGEyNoOPJm3DUU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20899},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bota-apps","email":"imusema.hassen@icloud.com"},"_resolved":"/private/var/folders/wp/6cc4gkfd481b73439xdrv4wm0000gn/T/ca3ae2212532994b98f1517ada6a04c3/bota-apps-auth-client-0.2.0.tgz","_integrity":"sha512-IWuspQFg8YS/uHdrP0quPl0JWu6R8TEl/OJK0spueJYmjG3+Z49TrzHqZjBOhWH4h2LmevbmkMY2bg8ohikFpQ==","repository":{"url":"git+https://github.com/bota-apps/bota-apps.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"10.9.8","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.2.0_1782838690427_0.9874970144847406","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@bota-apps/auth-client","version":"0.3.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.3.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"07aaa193112bb9d2bed190c5c3c27d483e97cb3e","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.3.0.tgz","fileCount":23,"integrity":"sha512-ygtJnx1+okR4MilRc6o9JgUG3QMre/NpkmrYz+sc29T5YqVK3VTibLwDNhQlsYvjmJcELlh2NR+JrBjcO2T+Rg==","signatures":[{"sig":"MEQCIGtS1OWt5BD/53NTIuYyGrV9lXJYmXjZY3phEzcCpmYSAiAgz+8QfMhF2bSxU3hb+7sOXdJ/lBEzwXe/BsRQOO6wgw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25858},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.3.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/f99ead629233ca5eb3ed0b1b906e9397/bota-apps-auth-client-0.3.0.tgz","_integrity":"sha512-ygtJnx1+okR4MilRc6o9JgUG3QMre/NpkmrYz+sc29T5YqVK3VTibLwDNhQlsYvjmJcELlh2NR+JrBjcO2T+Rg==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.3.0_1783061247656_0.8519500018253694","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@bota-apps/auth-client","version":"0.4.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.4.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"0ca49fde5aabddefc2f9595e6e9090390da091ab","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.4.0.tgz","fileCount":23,"integrity":"sha512-CBv3/mhnSaK/QmdH/ArkvzugI0dvJkRQ/IFp59DcxI3Il/FDYZbNhkr+KtpMExUT54eUX2Rh3MXORl7kXe1wSA==","signatures":[{"sig":"MEQCIFthqugoSUvRHdJznm54QMX0vvefp55M30CMPx3+uaOeAiAlmPHW1IVCmHrB2mRhbvo4sImKos7L7RZkB0UDAIlXhw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24804},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.4.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/9479e7ef20d6ca4998d109d22a8fd6e0/bota-apps-auth-client-0.4.0.tgz","_integrity":"sha512-CBv3/mhnSaK/QmdH/ArkvzugI0dvJkRQ/IFp59DcxI3Il/FDYZbNhkr+KtpMExUT54eUX2Rh3MXORl7kXe1wSA==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.4.0_1783068186069_0.7421598544430321","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@bota-apps/auth-client","version":"0.4.1","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.4.1","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"c035c23695175ce43a519176bd1224cb788de60d","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.4.1.tgz","fileCount":23,"integrity":"sha512-xpxhBzX87LFpFOOW25wBo7HclGIOru3mS2y12HJdanDCkffpHVNdA22N92Qr2BA7gLXRZTcmPxkmIDN1NCZ7XA==","signatures":[{"sig":"MEUCIQCIVdJQ86WsmJvGrpu7YTPaOTXxBcti7Nq05IxHW8gJwgIgPsA9IVxz4r0zPQPLPW1dqKAUGcouQBItopjDnxXIrWY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24804},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.4.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/cd05dcd8e0021fa31cfb4a07cdb5b984/bota-apps-auth-client-0.4.1.tgz","_integrity":"sha512-xpxhBzX87LFpFOOW25wBo7HclGIOru3mS2y12HJdanDCkffpHVNdA22N92Qr2BA7gLXRZTcmPxkmIDN1NCZ7XA==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.4.1_1783072258123_0.24055875570280771","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@bota-apps/auth-client","version":"0.4.2","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.4.2","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"0e7b24bcc0a054704f16105e12b922bda64a14aa","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.4.2.tgz","fileCount":23,"integrity":"sha512-gpTZh5G9GqGd5/0YcfXWVe2s1bvOhsbU0rQJcTGWh+D9B0dY/Qi9cnsQmO2RBWNIJFupvxVI1q0cKRq35tNwIQ==","signatures":[{"sig":"MEYCIQDJPkgTQxOTGuv8hsvmdQCHLHvorY8WYWn6OW6aUqFLxwIhAKwk+bz81Jsz/ylnotK2jTFp6Wjg2Wx3+49dZS3+C9KF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24804},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.4.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/f6347909d715e1762d798822f86152b8/bota-apps-auth-client-0.4.2.tgz","_integrity":"sha512-gpTZh5G9GqGd5/0YcfXWVe2s1bvOhsbU0rQJcTGWh+D9B0dY/Qi9cnsQmO2RBWNIJFupvxVI1q0cKRq35tNwIQ==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.4.2_1783079408285_0.8446625039995577","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"@bota-apps/auth-client","version":"0.4.3","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.4.3","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"167f9e71081cfcb9977c4d28b4d79c8e86718c20","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.4.3.tgz","fileCount":23,"integrity":"sha512-F5LMdG9O900Qa1JPkpwjTNgJtL6wuQd6nSp7j7f7YoS9reKK+cjcmUiIJD/2s1cCbS4ZYA4o9hMpg+iPxH2SBw==","signatures":[{"sig":"MEQCIAi2THsIxuq5ewxiMZ3svboRQVIcioergRAWYsMhkVHUAiAMMAZpGouIVvgjd4dDNfGLnf2tpeTTj1vHmek6M37eew==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24804},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.4.3.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/6e5ae74141376aa08d7847e9d7949b4f/bota-apps-auth-client-0.4.3.tgz","_integrity":"sha512-F5LMdG9O900Qa1JPkpwjTNgJtL6wuQd6nSp7j7f7YoS9reKK+cjcmUiIJD/2s1cCbS4ZYA4o9hMpg+iPxH2SBw==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.4.3_1783113181778_0.47233545432172663","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bota-apps/auth-client","version":"0.5.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.5.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"3c05c16f4b981f517779f1b36f6294e94c05b817","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.5.0.tgz","fileCount":35,"integrity":"sha512-/bwnCUVZB0dqM5186h/Zo/Anpo/s1178I34ngu/N3Uwx4UywdoF5woCzKfkcTYrYU+9nflV3+ZhtyJZa+Cyoww==","signatures":[{"sig":"MEYCIQDLUNRasEkrKxEoovuML4NKKV1IlIutlEElWrIQZ69khQIhAMi6S54usNm2E7R7TairaS63WJc3vsSuq17UxTf/KI0/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34878},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.5.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/1fe258983a1869fa335046f858ded2bc/bota-apps-auth-client-0.5.0.tgz","_integrity":"sha512-/bwnCUVZB0dqM5186h/Zo/Anpo/s1178I34ngu/N3Uwx4UywdoF5woCzKfkcTYrYU+9nflV3+ZhtyJZa+Cyoww==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.5.0_1783124914871_0.8273348372411691","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@bota-apps/auth-client","version":"0.6.0","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.6.0","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"038e11dae6bbdcc8869044839550bae2015171e2","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.6.0.tgz","fileCount":35,"integrity":"sha512-pDZnW4YhlU6BmZ0wCZb0MKY0FxjoIt+4+z9FwynCbFh8D+/CrzJeqMWCR2cN0njHVHp0O8KpA24FI4QUwLXVYQ==","signatures":[{"sig":"MEYCIQDCJtqUTDXhcAjTmE1An6pqyCP/pJu4UOwm8FDo91wiaQIhAN2Sg4MphDGcVqq9Y7eoH8l9YHwcxrjuf2QP5l319Lnb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34878},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.6.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"bota-apps","email":"imusema.hassen@icloud.com"},"_resolved":"/private/var/folders/wp/6cc4gkfd481b73439xdrv4wm0000gn/T/4bfb487261493ea9c716254aa3f0db73/bota-apps-auth-client-0.6.0.tgz","_integrity":"sha512-pDZnW4YhlU6BmZ0wCZb0MKY0FxjoIt+4+z9FwynCbFh8D+/CrzJeqMWCR2cN0njHVHp0O8KpA24FI4QUwLXVYQ==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"10.9.8","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.6.0_1783230869576_0.8997392434587919","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@bota-apps/auth-client","version":"0.6.1","author":{"name":"bota-apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.6.1","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"1e491261ac411186e25e081a9ba64b8e14476c51","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.6.1.tgz","fileCount":35,"integrity":"sha512-n3QwtJGI6AxL+EVSN563VqN89ukanQ/vC9f2bs/RhHCf6pRNsIvm51roLC8Q+7LLFRf9RuJikX+8gTFC5p44dA==","signatures":[{"sig":"MEUCICFX5LgpKDGnbxoI6rfKBCqlBjOGcEnjTDcL/ckeWIBbAiEApDGE3wng0snP+AObkT9FOc/AC10ILmYXhasWceL+DsE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34879},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.6.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1904f6fc-be3d-42b4-bb80-327d18d9b15e"}},"_resolved":"/tmp/452edb60395b92fbde95908afabba34a/bota-apps-auth-client-0.6.1.tgz","_integrity":"sha512-n3QwtJGI6AxL+EVSN563VqN89ukanQ/vC9f2bs/RhHCf6pRNsIvm51roLC8Q+7LLFRf9RuJikX+8gTFC5p44dA==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.6.1_1783306214517_0.26666706995969847","host":"s3://npm-registry-packages-npm-production"}},"0.6.2":{"name":"@bota-apps/auth-client","version":"0.6.2","keywords":["bota-apps","typescript","auth","authentication","session","cookies","react"],"author":{"url":"https://github.com/bota-apps","name":"Bota Apps"},"license":"MIT","_id":"@bota-apps/auth-client@0.6.2","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"dist":{"shasum":"c300a78eb011eee41ff1b98b49686ee6ec41c31b","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.6.2.tgz","fileCount":35,"integrity":"sha512-r3a405eLyNV2ILAkhHNQO54+2NrEGFnomucLUL+raeEtvcfT13yO0JrxtjQ0q7WcCXtjovTYgKGYB7h/Ncdb2w==","signatures":[{"sig":"MEUCIQCtMg1nQSzA4yjkeIg0dfkJQudlGvOfTTa8xeXL87SvMAIgBfA8pn9y9cTkn+ND6eV4/wxDRoRCj5SIsJVO5b9ut+w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38149},"main":"./dist/index.js","type":"module","_from":"file:bota-apps-auth-client-0.6.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","clean":"rm -rf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b84e0045-87ce-4044-ba8b-54f0dcd80ef3"}},"_resolved":"/tmp/93c0ebc308b526c74b5e7f6643a56c09/bota-apps-auth-client-0.6.2.tgz","_integrity":"sha512-r3a405eLyNV2ILAkhHNQO54+2NrEGFnomucLUL+raeEtvcfT13yO0JrxtjQ0q7WcCXtjovTYgKGYB7h/Ncdb2w==","repository":{"url":"git+https://github.com/bota-apps/packages.git","type":"git","directory":"packages/auth-client"},"_npmVersion":"11.18.0","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@bota-apps/types":"^0.10.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^19.0.0","typescript":"^5.8.3","@types/react":"^19.0.0"},"peerDependencies":{"react":"^19.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth-client_0.6.2_1783319739752_0.6682677119762561","host":"s3://npm-registry-packages-npm-production"}},"0.6.3":{"name":"@bota-apps/auth-client","version":"0.6.3","description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","keywords":["bota-apps","typescript","auth","authentication","session","cookies","react"],"license":"MIT","author":{"name":"Bota Apps","url":"https://github.com/bota-apps"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/bota-apps/packages.git","directory":"packages/auth-client"},"homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","bugs":{"url":"https://github.com/bota-apps/packages/issues"},"publishConfig":{"access":"public"},"dependencies":{"@bota-apps/types":"^0.11.0"},"peerDependencies":{"react":"^19.0.0"},"devDependencies":{"@types/react":"^19.0.0","react":"^19.0.0","typescript":"^5.8.3"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"build":"rm -rf dist && tsc && node ../../scripts/fixExtensions.mjs","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"_id":"@bota-apps/auth-client@0.6.3","_integrity":"sha512-UlyJEgoJNh0yJm+VEz8iQvvWjpiuLHZFu61mg6pNqMmonxRy6QQ+83BDsGrn5T7LQkVYPfmkf+Fpkfqv+i9d0w==","_resolved":"/tmp/bcaca0bce3af708704ff1536fe0bc16e/bota-apps-auth-client-0.6.3.tgz","_from":"file:bota-apps-auth-client-0.6.3.tgz","_nodeVersion":"22.23.1","_npmVersion":"11.18.0","dist":{"integrity":"sha512-UlyJEgoJNh0yJm+VEz8iQvvWjpiuLHZFu61mg6pNqMmonxRy6QQ+83BDsGrn5T7LQkVYPfmkf+Fpkfqv+i9d0w==","shasum":"24b20b98f036ccf7e6c7d971a958f16a941e4cd2","tarball":"https://registry.npmjs.org/@bota-apps/auth-client/-/auth-client-0.6.3.tgz","fileCount":35,"unpackedSize":38149,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bota-apps%2fauth-client@0.6.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFnGxz6upbqtO+Vg1d3ltzSx4kSSD5M+VXzufuck7ZbUAiAjjnX7xGlZmbpRrqqWO7LXcfiTy1Iup82jKav9DC2xSA=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b84e0045-87ce-4044-ba8b-54f0dcd80ef3"}},"directories":{},"maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/auth-client_0.6.3_1784780384971_0.4332625918974242"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-30T16:58:10.257Z","modified":"2026-07-23T04:19:45.432Z","0.2.0":"2026-06-30T16:58:10.568Z","0.3.0":"2026-07-03T06:47:27.805Z","0.4.0":"2026-07-03T08:43:06.202Z","0.4.1":"2026-07-03T09:50:58.270Z","0.4.2":"2026-07-03T11:50:08.491Z","0.4.3":"2026-07-03T21:13:01.920Z","0.5.0":"2026-07-04T00:28:34.995Z","0.6.0":"2026-07-05T05:54:29.710Z","0.6.1":"2026-07-06T02:50:14.646Z","0.6.2":"2026-07-06T06:35:39.886Z","0.6.3":"2026-07-23T04:19:45.102Z"},"bugs":{"url":"https://github.com/bota-apps/packages/issues"},"author":{"name":"Bota Apps","url":"https://github.com/bota-apps"},"license":"MIT","homepage":"https://github.com/bota-apps/packages/tree/main/packages/auth-client#readme","keywords":["bota-apps","typescript","auth","authentication","session","cookies","react"],"repository":{"type":"git","url":"git+https://github.com/bota-apps/packages.git","directory":"packages/auth-client"},"description":"Cookie-based auth client for @bota-apps apps: a session endpoint, an external auth store, a root-route guard, and React bindings — composed via createAuthClient.","maintainers":[{"name":"bota-apps","email":"imusema.hassen@icloud.com"}],"readme":"# @bota-apps/auth-client\n\nCookie-session auth client for `@bota-apps` apps. You give it an `authUrl`; it\ngives you an `AuthClient` — a session endpoint, an external auth store, a\nroot-route guard, and React bindings, all composed by `createAuthClient`. No\ntokens are read or held: the session lives in an `HttpOnly` cookie owned by the\ngateway/BFF and is resolved over a `/bff/*` contract.\n\nThe auth SHAPE types (`AuthClient`, `AuthState`, `SessionUser`, …) live in\n[`@bota-apps/types/auth`](../types) and are re-exported here for convenience, so\nconsumers import both the runtime and its types from this single package.\n\n## Install\n\n```bash\npnpm add @bota-apps/auth-client\n# peer: react\n```\n\n## Usage\n\nCompose the client once at bootstrap — this is the only entry point most apps\nneed:\n\n```ts\nimport { createAuthClient } from \"@bota-apps/auth-client\";\n\nexport const authClient = createAuthClient({ authUrl: appConfig.bffUrl });\n```\n\n`AuthClientOptions` also accepts `paths` to override the `/bff/*` contract; the\ndefault is `defaultSessionPaths` (`/bff/{user,logout,login}`).\n\nThe resulting `AuthClient` surface:\n\n- `getState()` / `subscribe(listener)` — read the current `AuthState` and react\n  to changes (the store is external-store friendly).\n- `ensureReady()` — resolve the session once, awaitable.\n- `isAuthenticated()` — boolean guard derived from state.\n- `logout()` — clears the server session and updates state.\n- `loginUrl(returnUrl?)` — builds the BFF login URL (defaults the return target\n  to the current location).\n- `requireSession()` — root-route guard: awaits readiness, rethrows a transport\n  error to the app's error boundary (a network failure is **not** treated as\n  \"logged out\"), and otherwise redirects to the login page when there is no\n  session.\n\n`AuthState` is a discriminated union on `status`\n(`pending` | `authenticated` | `unauthenticated` | `error`), so narrowing the\nstatus narrows the payload — `user` exists only on the authenticated member.\n\n### React bindings\n\nProvide the client, then read it with the hooks:\n\n```tsx\nimport { AuthProvider, useAuth } from \"@bota-apps/auth-client\";\n\n<AuthProvider client={authClient}>{children}</AuthProvider>;\n\nfunction UserBadge() {\n  const { user, logout, loginUrl } = useAuth();\n  return user ? <button onClick={logout}>{user.name}</button> : <a href={loginUrl()}>Sign in</a>;\n}\n```\n\n`useAuthClient()` returns the raw client for imperative calls;\n`useCurrentOrganization()` / `useSwitchOrganization()` cover the multi-org case.\n\n### Registering the app's user type\n\nThe client is generic over `TUser extends SessionUser`. Apps register their\nAPI-owned user type once via declaration merging against the module that\ndeclares the interface — so every surface (`useAuth().user`, `getState()`) is\ntyped app-wide without call-site generics:\n\n```ts\ndeclare module \"@bota-apps/types/auth\" {\n  interface AuthRegister {\n    user: ApiUser;\n  }\n}\n```\n\n## API\n\n| Export                                             | What                                                                          |\n| -------------------------------------------------- | ----------------------------------------------------------------------------- |\n| `createAuthClient`                                 | Composes endpoint + store + guard into an `AuthClient` bound to `authUrl`.    |\n| `createSessionEndpoint` / `defaultSessionPaths`    | The `/bff/*` session transport and its default path contract.                 |\n| `createAuthStore`                                  | The external auth store (state + `subscribe`), guarded against stale commits. |\n| `requireAppContext`                                | Route-loader guard returning the typed `AppContext` / `RootContext`.          |\n| `AuthProvider` / `useAuth` / `useAuthClient`       | React provider and hooks over an `AuthClient`.                                |\n| `useCurrentOrganization` / `useSwitchOrganization` | Current-org read and switch hooks.                                            |\n\nShape types (`AuthClient`, `AuthState`, `AuthStatus`, `SessionUser`,\n`RegisteredAuthUser`, `SessionEndpoint`, `SessionPaths`, and the per-status state\nmembers) are re-exported from `@bota-apps/types/auth`.\n\nPart of the [`@bota-apps` packages monorepo](https://github.com/bota-apps/packages).\n","readmeFilename":"README.md"}