{"_id":"@hedystia/better-auth-admin","_rev":"27-96c1f84b2235dfd6ba9422c4c1796bad","name":"@hedystia/better-auth-admin","dist-tags":{"latest":"0.2.1"},"versions":{"0.0.1-dev.0":{"name":"@hedystia/better-auth-admin","version":"0.0.1-dev.0","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.1-dev.0","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"1a7ddb961b98abfda496bd93a217b52286d15dae","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.1-dev.0.tgz","fileCount":5,"integrity":"sha512-U1f8+tuHCgHcbkrthLYe9v98gJniTo0AB9CbW/f76fu+ZV/8SoJZs37MKwxYlQ+09CvQcLOXf3P/FeyulBtobQ==","signatures":[{"sig":"MEYCIQD7gBqaS0L8Z8GAOlpA/XxcO4z9fs4aXr+v97UrfFO7ZwIhAMz/YzY56jiN43dOSjJmROZTtBiNclGu/uu+fc9rXNJ2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164360},"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"},"./client.js":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.0","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.1-dev.0_1735755247433_0.40710598474413273","host":"s3://npm-registry-packages-npm-production"}},"0.0.1-dev.1":{"name":"@hedystia/better-auth-admin","version":"0.0.1-dev.1","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.1-dev.1","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"9f684333cd3f4d62d5f596cfb3f082cce380de1b","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.1-dev.1.tgz","fileCount":5,"integrity":"sha512-uyFjfl3YdGRAXg6LXq2XIUuuRc6mKsJJ2S4Q1qCrn2wtEJr3O/B9qaYqRbVTEyF6qRsfXBk1Xm51oOPZxY/0kQ==","signatures":[{"sig":"MEYCIQDo/pCEPFPJqxVYHJS43CkTgc2k/ZG3xplbKpDUfwXbxgIhANFr+/RbyM7gzFdCcH/+9Yp3zAa5cyNjI5c0lLeb6aDo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164357},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.0","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.1-dev.1_1735755393462_0.24968107717355292","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@hedystia/better-auth-admin","version":"0.0.1","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.1","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"412b52bfff231910fe38f2d4eae579c0dd93c2fe","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.1.tgz","fileCount":5,"integrity":"sha512-ed30muySuhYd8Rfr8PUxUahUYhLXl4YsCZ50PE/R76/sClsmjqm0mMubDhrmarPr2aahMPr9C7OQDXaZSufWzQ==","signatures":[{"sig":"MEUCIH7Z2dPCRx1Rcu+kxJMxAVX7Vu/VpAS8B6GTOEu82R8gAiEA/FCH28Cc0uRw6MGwoAMRLtIZtjIrp4owpAYAl9NOvkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164351},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.0","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.1_1735755545833_0.9396189618656217","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@hedystia/better-auth-admin","version":"0.0.2","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.2","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"412910423b0e4c9b9ccf50dbd43b060bcafcccd7","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.2.tgz","fileCount":6,"integrity":"sha512-DxtCvQNKLDHJrWZJ0N1SkFf7Uw0FdMEoVlMfCgQfRV1qokPP4i3Mrs6T9ibD45u6w3EH6bfQz09rnHTPwTbJbw==","signatures":[{"sig":"MEUCIDwMoS6fn1CqTsHh0PXzAzw+zL9hjBzHxULjuq3QXxRZAiEA/Od719uaKTxeQK+BYh1gRNd+AS2nTRKPIMJdpiXhS3o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167841},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.0","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.2_1735756695891_0.05725621474645992","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@hedystia/better-auth-admin","version":"0.0.3","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.3","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"3d4ac2ffec130983f78a1f6c054ce4dd7518c033","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.3.tgz","fileCount":6,"integrity":"sha512-GiN/dwepgnUN8oowZB1ZM2qxJr1W6mpZDmcOOTlxBN8uAlkatZR7XLoSvISERUyuxhirNkq94zoxg0OM1S41RA==","signatures":[{"sig":"MEQCIDx3LuU1/j84KYRGv6RcjN0ZHEPVuudmQwNneuo6JooNAiBaXBp1TH0mtkHExtkEAmfj/+CvkZuapHUlp4AfuekprQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167969},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"gitHead":"cafd059f05d5677093c669b6841fff73cb41d85f","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"11.0.0","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.3_1735839623261_0.9853270330629298","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@hedystia/better-auth-admin","version":"0.0.4","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.4","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"a06060755f0828da520edf4acda9b073e5dadb0f","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.4.tgz","fileCount":6,"integrity":"sha512-1PguN8nNQ16PKMHno2dNSkbzUONEtb5ni64JVRP8QbcSLQW6XHbicJ87e1hUi2hYS47yTy1PoBIFe6rQNrXW1g==","signatures":[{"sig":"MEUCIAgAFjH0aVvMRyKNismOH9EembW27Gz25ProxwCW3GeQAiEAhBGsYUmwpyslIh3H4zbuiGARu7nYYkXWAV/XF6Do7ow=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164739},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"gitHead":"ba814af7c40a67987eac0528038b9694022bedbe","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"11.0.0","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.4_1735841222428_0.5203201564017987","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@hedystia/better-auth-admin","version":"0.0.5","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.0.5","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"47133e660092db3c6cbb5c5c3a9db21e2fd54927","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.0.5.tgz","fileCount":6,"integrity":"sha512-h470fOrKcYBfuZp50BaVPAzTZV7AVRdtoMi3gAXVzT0ep8casHOptB4tfIdPWgxAXMZqGUiJbXILmS5TVZF32A==","signatures":[{"sig":"MEQCIEy8cCgXeRfbyKQ+MQTz7ZPTwtfzYZDHmwr+DQRO1v6WAiBDJFOlUsUmSZ7RZqyV4k+QPOj7U/ZYt3mDMiT+XCwQWg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":164804},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"gitHead":"0c2a3777a2b9cbaa06df54b3d81aabaaea1d0f7c","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"11.0.0","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.0.5_1735849788709_0.9834057379073147","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@hedystia/better-auth-admin","version":"0.1.0","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.1.0","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"ee34a7b4864fe1ccff21175c5b1af23f0065f0f8","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.1.0.tgz","fileCount":6,"integrity":"sha512-zSdFeFXcIeGLxFDFUeSdUU7iCkacW4B4jepipviiG3zJwbYzlt5hvbsiZNt+TAk7rziNAssEbFCjRLn0qmYtQg==","signatures":[{"sig":"MEYCIQCljY/GjifLvINCETwZ/p4CqpLk/FX5bxGLCjpMXpZhtwIhAKeHX0o66I8NsDIkI3sKGuQh2r5Gn8msrHvmCcZTp1fz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174586},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"ee34a7b4864fe1ccff21175c5b1af23f0065f0f8","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"_integrity":"sha512-zSdFeFXcIeGLxFDFUeSdUU7iCkacW4B4jepipviiG3zJwbYzlt5hvbsiZNt+TAk7rziNAssEbFCjRLn0qmYtQg==","deprecated":"@hedystia/better-auth-admin has been deprecated, use @hedystia/better-auth-admin@latest","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.8.3","directories":{},"_nodeVersion":"22.6.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.1.0_1739747341142_0.5532713955744044","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@hedystia/better-auth-admin","version":"0.1.1","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.1.1","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"f28fad14117bcdc1af4d0c90480c44156ca920d3","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.1.1.tgz","fileCount":6,"integrity":"sha512-7DVvS/pZKXqAiHPdxkqnT7Ln0E8sq21EhAmLLpYqh5iev5HcReIN/zhNCUgVdeMQIb2FuuojFPVzrpRa6UBhvg==","signatures":[{"sig":"MEUCIQDnHn6O+GfH1QAvcpgHuINZPHfT7XsmhElFtQ0aaoPvFgIgF6gIxjwARfX5jeal1TY/2olVvWKdPhrpuJyB3ofAg5o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174584},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","shasum":"f28fad14117bcdc1af4d0c90480c44156ca920d3","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"_integrity":"sha512-7DVvS/pZKXqAiHPdxkqnT7Ln0E8sq21EhAmLLpYqh5iev5HcReIN/zhNCUgVdeMQIb2FuuojFPVzrpRa6UBhvg==","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.8.3","directories":{},"_nodeVersion":"22.6.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.1.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.1.1_1739749462651_0.5353480882197088","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@hedystia/better-auth-admin","version":"0.2.0","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.2.0","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"d16cfd2015283cf2782f8091c7ccd92c3f4747c2","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.2.0.tgz","fileCount":6,"integrity":"sha512-jvmwchv+wW5qpMJMp8AjEXCtBPA80Vd0R2uqtScN5in4Yo0mwZn71e1VLdKxzEmpDiU01hG0Ddis2qpGicAESw==","signatures":[{"sig":"MEUCIAVU2sReE9lVVM1x4KjfcLdS+bX1kgSEtxu3X77mu3UgAiEAs9f/lDOjxpdYpkglaRmBWu3183kG2ei0f5d/ertbLqY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160216},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"gitHead":"9c1b3906ee09fd883a73a9561d663e434463b4ba","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use better-auth instead","repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.2","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.2.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.2.0_1740886598338_0.9170414456510212","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@hedystia/better-auth-admin","version":"0.2.1","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"license":"MIT","_id":"@hedystia/better-auth-admin@0.2.1","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"homepage":"https://github.com/Zastinian/better-auth-admin","bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"dist":{"shasum":"06b8d3f4a119ff8269c147105051a00031399ca2","tarball":"https://registry.npmjs.org/@hedystia/better-auth-admin/-/better-auth-admin-0.2.1.tgz","fileCount":6,"integrity":"sha512-buEihIOb1zfpXEfcLpsKLqcK3yu2YKL3TgzuQQPxPMvVkacjVqY99M3FSP2YyzL6Q5dOkiYrD1r7xmfoc8vJZQ==","signatures":[{"sig":"MEUCIE+QROZ5vxtSGjsypBoox8xICDLqK10IsJixcqEddSfqAiEAuOXkOjRLDMlkkOXfZus8V4MgocNinq/PslAdgUa9Njw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160347},"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"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./package.json":"./package.json"},"gitHead":"c67a3a7b6c9aee58004f4aab6c8ae3c81bea334d","scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"zastinian","email":"zastinian@gmail.com"},"repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"_npmVersion":"10.9.2","description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.3.5","@types/bun":"^1.1.14","typescript":"^5.7.2"},"peerDependencies":{"better-auth":"^1.2.0"},"peerDependenciesMeta":{"better-auth":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/better-auth-admin_0.2.1_1744153353171_0.4329242384196723","host":"s3://npm-registry-packages-npm-production"},"deprecated":"@hedystia/better-auth-admin has been deprecated, use better-auth instead"}},"time":{"created":"2025-01-01T18:14:07.341Z","modified":"2025-04-08T23:03:46.332Z","0.0.1-dev.0":"2025-01-01T18:14:07.623Z","0.0.1-dev.1":"2025-01-01T18:16:33.627Z","0.0.1":"2025-01-01T18:19:06.052Z","0.0.2":"2025-01-01T18:38:16.078Z","0.0.3":"2025-01-02T17:40:23.468Z","0.0.4":"2025-01-02T18:07:02.641Z","0.0.5-dev.0":"2025-01-02T18:21:15.403Z","0.0.5-dev.1":"2025-01-02T18:22:08.615Z","0.0.5":"2025-01-02T20:29:48.883Z","0.1.0":"2025-02-16T23:09:01.313Z","0.1.1":"2025-02-16T23:44:22.824Z","0.2.0":"2025-03-02T03:36:38.526Z","0.2.1":"2025-04-08T23:02:33.368Z"},"bugs":{"url":"https://github.com/Zastinian/better-auth-admin/issues"},"license":"MIT","homepage":"https://github.com/Zastinian/better-auth-admin","keywords":["better-auth","admin","plugin","auth","better","permissions","typescript"],"repository":{"url":"git+https://github.com/Zastinian/better-auth-admin.git","type":"git"},"description":"<div align=\"center\">   <p>     <strong>🛡️ @hedystia/better-auth-admin</strong>   </p>","maintainers":[{"name":"zastinian","email":"zastinian@gmail.com"}],"readme":"# The developers of better auth already added the ability to have roles in their admin plugin, use that addon instead of this one\n\n<div align=\"center\">\n  <p>\n    <strong>🛡️ @hedystia/better-auth-admin</strong>\n  </p>\n\n  <p>\n    <strong>Enhance your Better Auth projects with powerful admin features! 🚀</strong>\n  </p>\n\n  <p>\n    <a href=\"https://www.npmjs.com/package/@hedystia/better-auth-admin\"><img src=\"https://img.shields.io/npm/v/@hedystia/better-auth-admin.svg?style=flat-square\" alt=\"npm version\"></a>\n    <a href=\"https://www.npmjs.com/package/@hedystia/better-auth-admin\"><img src=\"https://img.shields.io/npm/dm/@hedystia/better-auth-admin.svg?style=flat-square\" alt=\"npm downloads\"></a>\n    <a href=\"https://github.com/Zastinian/better-auth-admin/blob/main/LICENSE\"><img src=\"https://img.shields.io/github/license/Zastinian/better-auth-admin.svg?style=flat-square\" alt=\"license\"></a>\n  </p>\n</div>\n\n## 🌟 Features\n\n- 🔐 **Role-based Access Control**: Define and manage user roles and permissions\n- 👥 **Advanced User Management**: Create, update, list, and remove users with ease\n- 🚫 **User Banning**: Temporarily or permanently restrict user access\n- 👤 **User Impersonation**: Securely access user accounts for support purposes\n- 🔍 **Flexible User Search**: Find users quickly with powerful search and filter options\n- 🛠️ **Customizable Configuration**: Tailor the admin features to your project needs\n\n## 🚀 Quick Start\n\n1. Install the package:\n\n```bash\nnpm install @hedystia/better-auth-admin\n```\n\n2. Import the plugin in your `auth.ts` file:\n\n```typescript\nimport { admin } from \"@hedystia/better-auth-admin\";\nimport { betterAuth } from \"better-auth\";\n\nexport const auth = betterAuth({\n  plugins: [\n    // Other plugins...\n    admin({\n      // Configuration options\n    }),\n  ],\n});\n```\n\n3. Add the plugin to your `authClient.ts` file:\n\n```typescript\nimport { adminClient } from \"@hedystia/better-auth-admin/client\";\nimport { createAuthClient } from \"better-auth/client\";\n\nexport default createAuthClient({\n  plugins: [\n    // Other plugins...\n    adminClient()\n  ],\n});\n```\n\n## 🎨 Configuration\n\nThe `admin` plugin accepts an optional configuration object with the following properties:\n\n```typescript\nadmin({\n  defaultRole: \"user\",\n  adminRole: \"admin\",\n  defaultBanReason: \"No reason\",\n  defaultBanExpiresIn: 60 * 60 * 24 * 7, // 1 week\n  impersonationSessionDuration: 60 * 60, // 1 hour\n  permissions: {\n    global: \"*\",\n    createRole: \"create_role\",\n    listPermissions: \"list_permissions\",\n    listRoles: \"list_roles\",\n    updateRole: \"update_role\",\n    getRole: \"get_role\",\n    setRole: \"set_role\",\n    banUser: \"ban_user\",\n    unBanUser: \"un_ban_user\",\n    impersonateUser: \"impersonate_user\",\n    stopImpersonating: \"stop_impersonating\",\n    createUser: \"create_user\",\n    updateUser: \"update_user\",\n    deleteUser: \"delete_user\",\n    listUsers: \"list_users\",\n    setUserRole: \"set_user_role\",\n    listUserSessions: \"list_user_sessions\",\n    revokeUserSession: \"revoke_user_session\",\n    revokeUserSessions: \"revoke_user_sessions\",\n    linkUser: \"link_user\",\n    unlinkUser: \"unlink_user\",\n    removeUser: \"remove_user\",\n  },\n});\n```\n\n## 🌟 Why use this plugin?\n\nThis plugin is a fork of the original better-auth “admin” plugin but enhanced to support permissions for each role.\n\n## 📝 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## 🙏 Acknowledgements\n\n- [better-auth](https://github.com/better-auth/better-auth)\n- [better-auth-admin](https://github.com/better-auth/better-auth/tree/main/packages/better-auth/src/plugins/admin)\n","readmeFilename":"README.md"}