{"_id":"@asibulhasanshanto/nestjs-better-auth","_rev":"16-a263548993ab9d7287133f54b444633b","name":"@asibulhasanshanto/nestjs-better-auth","dist-tags":{"latest":"1.0.15"},"versions":{"1.0.0":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.0","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.0","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"homepage":"https://github.com/thallesp/nestjs-better-auth#readme","bugs":{"url":"https://github.com/thallesp/nestjs-better-auth/issues"},"dist":{"shasum":"58510c54f71f29195a8962226576a7c7fc4e028f","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.0.tgz","fileCount":8,"integrity":"sha512-dApxXbAPKO3OKycBRWFmy/YuaVKHK8dCYr8rjewxuwz3nFKU2yug394A7nGWFCXFolQpJ5gCFNwhPr6/Ozy7gQ==","signatures":[{"sig":"MEUCIQDThmjojje7mbVzI4cGb35Cm4cur968vKDo8vaAherAEgIgaAiPIdveN3f6escV5eRcO1YXrInM82/cY3Csvu/VPp4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64036},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"981b75b75b7010d8d8163386f9f8558f751ecb46","scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"git+https://github.com/thallesp/nestjs-better-auth.git","type":"git"},"_npmVersion":"11.6.2","description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.0_1763958992973_0.6222902638897989","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.1","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.1","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"73d61a187be620930bcdea203526f8a494bac2fb","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.1.tgz","fileCount":10,"integrity":"sha512-06mphVZ+BPiGHqT2C6oSkiJHKia2MHKpq7hTnXYmtxlpoF4dHbreYk0lP7I3WzEDTwvYq8XI38FolvPEvSnRHw==","signatures":[{"sig":"MEUCIF2t8rpuDkh0tcr7row6/deuG+zFO4b/4Sbaqqjft/vrAiEA1NIZOZTaTQQ+KSYqVZ0tiOuFbuKpEjsKkfXYRLnNWJY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64036},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.1_1763959209039_0.2683657849254504","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.2","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.2","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"83cde71bab18750a2bd72bbb840130c4c34e820d","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.2.tgz","fileCount":10,"integrity":"sha512-nOtaEl11r0zfi06AVVYZV0EyLuGJ65N5NIZF6slUsQSNXJtKg8acc9pIkZYbHw8+hOMK4qA4mRfEoaKl27W2xQ==","signatures":[{"sig":"MEUCIGwJqqwH80ZlMlbViStXP8VYddgHh5DUTtZ8TS7nkGDnAiEAtozM7Ti1G8YXVO0gHCks6eRy+uucQn6Ibd9vqerLJSY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64036},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.2_1763959249832_0.8132092905591843","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.3","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.3","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"homepage":"https://github.com/thallesp/nestjs-better-auth#readme","bugs":{"url":"https://github.com/thallesp/nestjs-better-auth/issues"},"dist":{"shasum":"678a09209511b8a40f8917c961acfd73b911607e","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.3.tgz","fileCount":6,"integrity":"sha512-G1gVXHCK+HurwyqOvi9ap8cdEU2x0eqgSR5uniH+mOcnFT1h1w9mxd6g6d9j4Cp6jC/nyG0x3W6yQtwwIRb70g==","signatures":[{"sig":"MEUCICT3aWsSRuIgOrNpCfgFNuxTMq0Z/IdQlgLtuQaxQ7JYAiEAniVSKAtMSgBz8sugKQOUKZ16Ct29sPh5qa/5PsScBIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42608},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs"}},"gitHead":"981b75b75b7010d8d8163386f9f8558f751ecb46","scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"git+https://github.com/thallesp/nestjs-better-auth.git","type":"git"},"_npmVersion":"11.6.2","description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.3_1765812322176_0.30001285044936665","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.4","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.4","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"8c36d355ae6e876d57a60633352ebbdb309eb276","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.4.tgz","fileCount":8,"integrity":"sha512-AaGQAbILMBCppshpFqhi4R7770Z1jWX/WSgovvVygXBBWsXpspZsHQGkhVnTHF02w0xzRQaKq5/uAe8d+8AaXg==","signatures":[{"sig":"MEQCIGEzmz51nEKi3j03O4v+WN4aixw99kFU1fIC5me3yaLLAiAmNdrEAkmHZlV1/JIo9SKTlqYM96dkoDKEhn1CuoMcPA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42609},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.4_1765812527262_0.6262859389912481","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.5","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.5","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"489c0be34ec40a512356c42e2b54b254bbfa0d5f","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.5.tgz","fileCount":8,"integrity":"sha512-+IdpGG+EhfWMuvXGyZXJ5ce8xmXH56xRsp5D3OGPuOROp2Dpb300wU0yCfZ/kAd5xk/zC4zPUTk5gWWl9oZnAA==","signatures":[{"sig":"MEQCIATBX8vUP8UeyOq0oPLnRZrXm3zmbF+RgbKTAlo0G7Q8AiBJrjK+5bg2t345+vNMEh7T6t9OppL99UZT+1d2gFMLDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42609},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.5_1765812932367_0.19230810522636865","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.6","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.6","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"d3cace27521adde4bb329b5c7538766b8f5d6c96","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.6.tgz","fileCount":8,"integrity":"sha512-AxgVnYNeU5BpXk+W1QQR5vDfy7hIoCQGXjac1dWYSyhbq0MnWL/F8tQkcRheRmXwBjJcOI45YavV3A1oRHkejA==","signatures":[{"sig":"MEYCIQCsYRy8psZz7deHbdSi8vdWdZcg2F7DFttrnXxMgk4uagIhALQ8KvvPcuUjKUpzmG7F0slqzlNghjrht4iG+BSHzd7I","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42643},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.6_1765814086818_0.6865729342852311","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.7","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.7","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"5cf75dab7bb42c20378af1f8b98fec8e8c339a83","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.7.tgz","fileCount":10,"integrity":"sha512-rsf5QZroXmg04eA2jwWGlOB92UDLs/eZo8hSECgxx8PRi8GZh5jLu/jJCWjtcu/MCmPxiX0faymHuvPlsD19nA==","signatures":[{"sig":"MEYCIQCeQqyO0yrtNFqHaccJMMdDUDbG7K2PHLlXEtGCeNaKmAIhAMh+fFRPJfPLctlAPV10UbgbmiGUx5mjDRXK5+oh7cx5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64104},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.7_1765815771805_0.3515672459602228","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.8","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.8","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"fff21cf2d109fb55b2f30979da3c87974ec685e4","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.8.tgz","fileCount":8,"integrity":"sha512-xCH79YR3wszv1Pd3KAQ+S9yNW74IbH+OOWXe93eeL/ZxYpsnwo+eOq9Pq13JsbMrYuhvd7Ga0c4R0rBBtn4e7Q==","signatures":[{"sig":"MEQCIC2BXYFAupjCBqrp5TQ9p4WzSQRCEvfi69z4Q3fTgYKdAiBEJ3DR4JOa0XKhNRj+VMRoIyrslPjBIuGOkHlyB8hZDw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42677},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.8_1765816254208_0.2620003542764826","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.9","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.9","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"5fe344ea37edcc43f46eb90b71a9658d3c287b4e","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.9.tgz","fileCount":11,"integrity":"sha512-78YRvtee4XMHLigJbYnscD4uzb5IVnwUmw6/99OdRAfSXePzyz4rtGXQ2F+fSSY8rBuS8SKJVDkvQzj/Ne2aDw==","signatures":[{"sig":"MEUCIQCUo3zs2zW8Kk8hrpQBcTxb8GNou/C/SIdVJKmVpu9WGwIgY8KGquFiyADJBgfAmtKzb7buRU6LkMG4LR9GQbFusMw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4499466},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.cjs","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"tsup","check":"biome check","format":"biome format","prepack":"bun run build"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","dependencies":{"tsup":"^8.5.1"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.9_1765817887773_0.5484391580254497","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.10","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.10","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"d442de1ac563a4ce38d85f71c33d5d7e4544a805","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.10.tgz","fileCount":10,"integrity":"sha512-vyVIiyCCe9seVLs1w6qsurc4qN9FP27PcT/6H6ZWacS6F+AcVPVYvflFeitLN9FeR3YVjKP9R/HOGEyiWk5BQw==","signatures":[{"sig":"MEUCICWjp0RpRzM4xvkGEZgn+olokXi08vKiGIaBQNZ7GILbAiEAkZFpSlzOXaVBMpEoj4vlxQ9h8fIlkV3Pbr+hpTywJFc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64037},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.10_1765820923150_0.6315862048131036","host":"s3://npm-registry-packages-npm-production"}},"1.0.11":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.11","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.11","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"d1269f7dcea5432abe59f8dc1ea6416f505a20c6","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.11.tgz","fileCount":8,"integrity":"sha512-D23Ki/gkVi3uBwl/2uMRd3Q7waTlIJWYGhXfJdJUt54qZb4anThiXE5m28xHj3PUTcqh8gsrOTsN5taZY3Im8Q==","signatures":[{"sig":"MEQCIDu58FZ7TagKEat9MKTc20NnorZZEjQGbnig3VtpeSPaAiBZc/HQmJHz+Fd60olTapfRNPWH40wLR/wm8uoy7XEDFg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42825},"main":"./dist/index.mjs","type":"module","types":"dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"unbuild","check":"biome check","format":"biome format","prepack":"bun run unbuild"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.11_1765821687096_0.29896156858267253","host":"s3://npm-registry-packages-npm-production"}},"1.0.12":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.12","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.12","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"7b220ebb70f9bcb3f8309d98c442555d6799d362","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.12.tgz","fileCount":11,"integrity":"sha512-FwrA06Q2gJADD4JR1+cFMYib/59LYy/ZbHJxuwMxjR7wOd2KSA8tcOuUqGduY9tqCKBhkBHKD/FEyiXsk20oaw==","signatures":[{"sig":"MEYCIQCv6Y6KzPZhCmeeUMBhckRJCU0P63MsCGx/J2gx4vbzwAIhAP5X5Q1Y6Kd90yrE7VpIDOqwBZ+dfK/iKSGCUQx4GsLf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4499711},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"tsup","check":"biome check","format":"biome format","prepack":"bun run tsup"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","dependencies":{"typescript":"^5.9.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","better-auth":"^1.4.1","@nestjs/core":"^11.1.6","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@nestjs/common":"^11.1.6","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@nestjs/websockets":"^11.1.6","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.12_1765822403200_0.28318531800491686","host":"s3://npm-registry-packages-npm-production"}},"1.0.13":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.13","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.13","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"68ad81be93f800d7f92d81ec32bb36b2f35c5c58","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.13.tgz","fileCount":11,"integrity":"sha512-8nqLj18Zi5BGFAlt2KqqrrRm53BZ0J6wkJFv86Y4XYuYTyua8H0RHVZ78k1SFrLBrtROBPxtVkxTK8hVD051Fw==","signatures":[{"sig":"MEYCIQDp2I8l6qaa60iBF65VqBATpPRt/akpwYms6oKxdBFhBQIhAJ1EG7VYUEgnXfGu2ymmaWMrWUbk1k55cMBZ1U8Ltj9u","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10756283},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"tsup","check":"biome check","format":"biome format","prepack":"bun run tsup"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","dependencies":{"typescript":"^5.9.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","better-auth":"^1.4.1","@nestjs/core":"^11.1.6","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@nestjs/common":"^11.1.6","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@nestjs/websockets":"^11.1.6","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.13_1765823631087_0.5894496441438573","host":"s3://npm-registry-packages-npm-production"}},"1.0.14":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.14","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"author":{"name":"Asibul Hasan"},"license":"MIT","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.14","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"dist":{"shasum":"687119384ece71192808fd9ad53617bf078239d6","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.14.tgz","fileCount":11,"integrity":"sha512-ibJw8owKDMycr71XvUABmVl8XIwKpQBcO9l7fwnFIoH89GOlf3pLKCYtmDny6Vz/RGeH7VAzo91/vowLEjfAiw==","signatures":[{"sig":"MEUCIC6OoG8Ox4uwHMlVc4QsMcba71JoZrbLqA8sp0ZtUyGcAiEA49tGjJZmuZtUf6YlLGTYA/CX/5t9A56qj2nDorU+GBw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10781298},"main":"./dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome lint","test":"vitest","build":"tsup","check":"biome check","format":"biome format","prepack":"bun run tsup"},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"repository":{"url":"https://github.com/thallesp/nestjs-better-auth","type":"git"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","directories":{},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","dependencies":{"typescript":"^5.9.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.2.4","graphql":"^16.11.0","unbuild":"^3.6.1","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","socket.io":"^4.8.1","supertest":"^7.1.4","@types/bun":"latest","better-auth":"^1.4.1","@nestjs/core":"^11.1.6","unplugin-swc":"^1.5.7","@apollo/server":"^4.12.2","@biomejs/biome":"2.2.4","@nestjs/apollo":"^13.1.0","@nestjs/common":"^11.1.6","@types/express":"^5.0.3","@faker-js/faker":"^10.0.0","@nestjs/testing":"^11.1.6","@tsconfig/node22":"^22.0.2","@types/supertest":"^6.0.3","reflect-metadata":"^0.2.2","socket.io-client":"^4.8.1","@nestjs/websockets":"^11.1.6","@vitest/coverage-v8":"^3.2.4","@nestjs/platform-express":"^11.1.6","@as-integrations/express5":"^1.1.2","@nestjs/platform-socket.io":"^11.1.6"},"peerDependencies":{"express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2","better-auth":">=1.3.8 <2.0.0","@nestjs/core":"^11.1.6","@nestjs/common":"^11.1.6","@nestjs/websockets":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-better-auth_1.0.14_1766121505452_0.0015349380581999306","host":"s3://npm-registry-packages-npm-production"}},"1.0.15":{"name":"@asibulhasanshanto/nestjs-better-auth","version":"1.0.15","description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","author":{"name":"Asibul Hasan"},"license":"MIT","repository":{"type":"git","url":"https://github.com/thallesp/nestjs-better-auth"},"keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"type":"module","scripts":{"build":"tsup","prepack":"bun run tsup","lint":"biome lint","format":"biome format","check":"biome check","test":"vitest"},"types":"dist/index.d.ts","main":"./dist/index.cjs","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"devDependencies":{"@apollo/server":"^4.12.2","@as-integrations/express5":"^1.1.2","@biomejs/biome":"2.2.4","@faker-js/faker":"^10.0.0","@nestjs/apollo":"^13.1.0","@nestjs/common":"^11.1.6","@nestjs/core":"^11.1.6","@nestjs/platform-express":"^11.1.6","@nestjs/platform-socket.io":"^11.1.6","@nestjs/testing":"^11.1.6","@nestjs/websockets":"^11.1.6","@swc/cli":"^0.7.8","@swc/core":"^1.13.20","@tsconfig/node22":"^22.0.2","@types/bun":"latest","@types/express":"^5.0.3","@types/supertest":"^6.0.3","@vitest/coverage-v8":"^3.2.4","better-auth":"^1.4.1","graphql":"^16.11.0","reflect-metadata":"^0.2.2","socket.io":"^4.8.1","socket.io-client":"^4.8.1","supertest":"^7.1.4","tsup":"^8.0.0","unbuild":"^3.6.1","unplugin-swc":"^1.5.7","vitest":"^3.2.4"},"peerDependencies":{"@nestjs/common":"^11.1.6","@nestjs/core":"^11.1.6","@nestjs/websockets":"^11.1.6","better-auth":">=1.3.8 <2.0.0","express":"^5.1.0","graphql":"^16.11.0","typescript":"^5.9.2"},"dependencies":{"typescript":"^5.9.3"},"licenseText":"Copyright 2025 Thalles Passos\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@asibulhasanshanto/nestjs-better-auth@1.0.15","dist":{"shasum":"f41e4e491829308c4305c2dd3b6a065261fff2b9","integrity":"sha512-5GlYYfhiQp7JrE7sYUSXBjkljYzStDtFMjSEuaJ82xnvlLJkq34x/9i4X1m35gD0/g4C301h81pBdnqg6HnCwA==","tarball":"https://registry.npmjs.org/@asibulhasanshanto/nestjs-better-auth/-/nestjs-better-auth-1.0.15.tgz","fileCount":11,"unpackedSize":10781850,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCrEc/3BBxR7Qvd47T5pZEIfPJqdk++bbmeecP+3Jc7hAIgWYYjadOJ7fmITVMyzzaUP2rnLPV+B1gfp9xAbwL+ikg="}]},"_npmUser":{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"},"directories":{},"maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-better-auth_1.0.15_1769241588714_0.6366168189903356"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-24T04:36:32.858Z","modified":"2026-01-24T07:59:49.288Z","1.0.0":"2025-11-24T04:36:33.185Z","1.0.1":"2025-11-24T04:40:09.220Z","1.0.2":"2025-11-24T04:40:50.027Z","1.0.3":"2025-12-15T15:25:22.320Z","1.0.4":"2025-12-15T15:28:47.415Z","1.0.5":"2025-12-15T15:35:32.512Z","1.0.6":"2025-12-15T15:54:46.986Z","1.0.7":"2025-12-15T16:22:51.974Z","1.0.8":"2025-12-15T16:30:54.353Z","1.0.9":"2025-12-15T16:58:07.950Z","1.0.10":"2025-12-15T17:48:43.288Z","1.0.11":"2025-12-15T18:01:27.268Z","1.0.12":"2025-12-15T18:13:23.356Z","1.0.13":"2025-12-15T18:33:51.328Z","1.0.14":"2025-12-19T05:18:25.700Z","1.0.15":"2026-01-24T07:59:48.913Z"},"author":{"name":"Asibul Hasan"},"license":"MIT","keywords":["nestjs","better-auth","auth","nestjs-better-auth"],"repository":{"type":"git","url":"https://github.com/thallesp/nestjs-better-auth"},"description":"Better Auth for NestJS forked from @thallesp/nestjs-better-aut","maintainers":[{"name":"asibulhasanshanto","email":"asibulhasan.rucse.18@gmail.com"}],"readme":"# NestJS Better Auth Integration\n\nA comprehensive NestJS integration library for [Better Auth](https://www.better-auth.com/), providing seamless authentication and authorization for your NestJS applications.\n\n## Installation\n\nInstall the library in your NestJS project:\n\n```bash\n# Using npm\nnpm install @thallesp/nestjs-better-auth\n\n# Using yarn\nyarn add @thallesp/nestjs-better-auth\n\n# Using pnpm\npnpm add @thallesp/nestjs-better-auth\n\n# Using bun\nbun add @thallesp/nestjs-better-auth\n```\n\n## Prerequisites\n\n> [!IMPORTANT]  \n> Requires `better-auth` >= 1.3.8. Older versions are deprecated and unsupported.\n\nBefore you start, make sure you have:\n\n- A working NestJS application\n- Better Auth (>= 1.3.8) installed and configured ([installation guide](https://www.better-auth.com/docs/installation))\n\n## Basic Setup\n\n**1. Disable Body Parser**\n\nDisable NestJS's built-in body parser to allow Better Auth to handle the raw request body:\n\n```ts title=\"main.ts\"\nimport { NestFactory } from \"@nestjs/core\";\nimport { AppModule } from \"./app.module\";\n\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule, {\n    // Don't worry, the library will automatically re-add the default body parsers.\n    bodyParser: false,\n  });\n  await app.listen(process.env.PORT ?? 3333);\n}\nbootstrap();\n```\n\n> [!WARNING]  \n> Currently the library has beta support for Fastify, if you experience any issues with it, please open an issue.\n\n**2. Import AuthModule**\n\nImport the `AuthModule` in your root module:\n\n```ts title=\"app.module.ts\"\nimport { Module } from \"@nestjs/common\";\nimport { AuthModule } from \"@thallesp/nestjs-better-auth\";\nimport { auth } from \"./auth\";\n\n@Module({\n  imports: [AuthModule.forRoot({ auth })],\n})\nexport class AppModule {}\n```\n\n## Route Protection\n\n**Global by default**: An `AuthGuard` is registered globally by this module. All routes are protected unless you explicitly allow access with `@AllowAnonymous()` or mark them as optional with `@OptionalAuth()`.\n\nGraphQL is supported and works the same way as REST: the global guard applies to resolvers too, and you can use `@AllowAnonymous()`/`@OptionalAuth()` on queries and mutations.\n\nWebSocket is also supported and works in the same way as REST and GraphQL: you can use `@AllowAnonymous()`/`@OptionalAuth()` on any connections, but you must set the AuthGuard for all of them, either at the Gateway or Message level, like so:\n\n```ts\nimport { SubscribeMessage, WebSocketGateway } from \"@nestjs/websockets\";\nimport { UseGuards } from \"@nestjs/common\";\nimport { AuthGuard } from '@thallesp/nestjs-better-auth';\n\n@WebSocketGateway({\n\tpath: \"/ws\",\n\tnamespace: \"test\",\n\tcors: {\n\t\torigin: \"*\",\n\t},\n})\n@UseGuards(AuthGuard)\nexport class TestGateway { /* ... */ }\n```\n\nCheck the [test gateway](./tests/shared/test-gateway.ts) for a full example.\n\n## Decorators\n\nBetter Auth provides several decorators to enhance your authentication setup:\n\n### Session Decorator\n\nAccess the user session in your controllers:\n\n```ts title=\"user.controller.ts\"\nimport { Controller, Get } from \"@nestjs/common\";\nimport { Session, UserSession } from \"@thallesp/nestjs-better-auth\";\n\n@Controller(\"users\")\nexport class UserController {\n  @Get(\"me\")\n  async getProfile(@Session() session: UserSession) {\n    return session;\n  }\n}\n```\n\n### AllowAnonymous, OptionalAuth, and Roles Decorators\n\nControl authentication/authorization requirements for specific routes:\n\n```ts title=\"app.controller.ts\"\nimport { Controller, Get } from \"@nestjs/common\";\nimport {\n  AllowAnonymous,\n  OptionalAuth,\n  Roles,\n} from \"@thallesp/nestjs-better-auth\";\n\n@Controller(\"users\")\nexport class UserController {\n  @Get(\"public\")\n  @AllowAnonymous() // Allow anonymous access (no authentication required)\n  async publicRoute() {\n    return { message: \"This route is public\" };\n  }\n\n  @Get(\"optional\")\n  @OptionalAuth() // Authentication is optional for this route\n  async optionalRoute(@Session() session: UserSession) {\n    return { authenticated: !!session, session };\n  }\n\n  @Get(\"admin\")\n  @Roles([\"admin\"]) // Only authenticated users with the 'admin' role can access this route. Uses the access control plugin from better-auth.\n  adminRoute() {\n    return \"Only admins can see this\";\n  }\n}\n```\n\nAlternatively, use it as a class decorator to specify access for an entire controller:\n\n```ts title=\"app.controller.ts\"\nimport { Controller, Get } from \"@nestjs/common\";\nimport { AllowAnonymous, OptionalAuth } from \"@thallesp/nestjs-better-auth\";\n\n@AllowAnonymous() // All routes inside this controller are public\n@Controller(\"public\")\nexport class PublicController {\n  /* */\n}\n\n@OptionalAuth() // Authentication is optional for all routes inside this controller\n@Controller(\"optional\")\nexport class OptionalController {\n  /* */\n}\n\n@Roles([\"admin\"]) // All routes inside this controller require 'admin' role. Uses the access control plugin from better-auth.\n@Controller(\"admin\")\nexport class AdminController {\n  /* */\n}\n```\n\n### Hook Decorators\n\n> [!IMPORTANT]\n> To use `@Hook`, `@BeforeHook`, `@AfterHook`, set `hooks: {}` (empty object) in your `betterAuth(...)` config. You can still add your own Better Auth hooks; `hooks: {}` (empty object) is just the minimum required.\n\nMinimal Better Auth setup with hooks enabled:\n\n```ts title=\"auth.ts\"\nimport { betterAuth } from \"better-auth\";\n\nexport const auth = betterAuth({\n  basePath: \"/api/auth\",\n  // other better-auth options...\n  hooks: {}, // minimum required to use hooks. read above for more details.\n});\n```\n\nCreate custom hooks that integrate with NestJS's dependency injection:\n\n```ts title=\"hooks/sign-up.hook.ts\"\nimport { Injectable } from \"@nestjs/common\";\nimport {\n  BeforeHook,\n  Hook,\n  AuthHookContext,\n} from \"@thallesp/nestjs-better-auth\";\nimport { SignUpService } from \"./sign-up.service\";\n\n@Hook()\n@Injectable()\nexport class SignUpHook {\n  constructor(private readonly signUpService: SignUpService) {}\n\n  @BeforeHook(\"/sign-up/email\")\n  async handle(ctx: AuthHookContext) {\n    // Custom logic like enforcing email domain registration\n    // Can throw APIError if validation fails\n    await this.signUpService.execute(ctx);\n  }\n}\n```\n\nRegister your hooks in a module:\n\n```ts title=\"app.module.ts\"\nimport { Module } from \"@nestjs/common\";\nimport { AuthModule } from \"@thallesp/nestjs-better-auth\";\nimport { SignUpHook } from \"./hooks/sign-up.hook\";\nimport { SignUpService } from \"./sign-up.service\";\nimport { auth } from \"./auth\";\n\n@Module({\n  imports: [AuthModule.forRoot({ auth })],\n  providers: [SignUpHook, SignUpService],\n})\nexport class AppModule {}\n```\n\n## AuthService\n\nThe `AuthService` is automatically provided by the `AuthModule` and can be injected into your controllers to access the Better Auth instance and its API endpoints.\n\n```ts title=\"users.controller.ts\"\nimport { Controller, Get, Post, Request, Body } from \"@nestjs/common\";\nimport { AuthService } from \"@thallesp/nestjs-better-auth\";\nimport { fromNodeHeaders } from \"better-auth/node\";\nimport type { Request as ExpressRequest } from \"express\";\nimport { auth } from \"../auth\";\n\n@Controller(\"users\")\nexport class UsersController {\n  constructor(private authService: AuthService<typeof auth>) {}\n\n  @Get(\"accounts\")\n  async getAccounts(@Request() req: ExpressRequest) {\n    // Pass the request headers to the auth API\n    const accounts = await this.authService.api.listUserAccounts({\n      headers: fromNodeHeaders(req.headers),\n    });\n\n    return { accounts };\n  }\n\n  @Post(\"api-keys\")\n  async createApiKey(@Request() req: ExpressRequest, @Body() body) {\n    // Access plugin-specific functionality with request headers\n    // createApiKey is a method added by a plugin, not part of the core API\n    return this.authService.api.createApiKey({\n      ...body,\n      headers: fromNodeHeaders(req.headers),\n    });\n  }\n}\n```\n\nWhen using plugins that extend the Auth type with additional functionality, use generics to access the extended features as shown above with `AuthService<typeof auth>`. This ensures type safety when using plugin-specific API methods like `createApiKey`.\n\n## Request Object Access\n\nYou can access the session and user through the request object:\n\n```ts\nimport { Controller, Get, Request } from \"@nestjs/common\";\nimport type { Request as ExpressRequest } from \"express\";\n\n@Controller(\"users\")\nexport class UserController {\n  @Get(\"me\")\n  async getProfile(@Request() req: ExpressRequest) {\n    return {\n      session: req.session, // Session is attached to the request\n      user: req.user, // User object is attached to the request\n    };\n  }\n}\n```\n\nThe request object provides:\n\n- `req.session`: The full session object containing user data and authentication state\n- `req.user`: A direct reference to the user object from the session (useful for observability tools like Sentry)\n\n### Advanced: Disable the global AuthGuard\n\nIf you prefer to manage guards yourself, you can disable the global guard and then apply `@UseGuards(AuthGuard)` per controller/route or register it via `APP_GUARD`.\n\n```ts title=\"app.module.ts\"\nimport { Module } from \"@nestjs/common\";\nimport { AuthModule } from \"@thallesp/nestjs-better-auth\";\nimport { auth } from \"./auth\";\n\n@Module({\n  imports: [\n    AuthModule.forRoot({\n      auth,\n      disableGlobalAuthGuard: true,\n    }),\n  ],\n})\nexport class AppModule {}\n```\n\n```ts title=\"app.controller.ts\"\nimport { Controller, Get, UseGuards } from \"@nestjs/common\";\nimport { AuthGuard } from \"@thallesp/nestjs-better-auth\";\n\n@Controller(\"users\")\n@UseGuards(AuthGuard)\nexport class UserController {\n  @Get(\"me\")\n  async getProfile() {\n    return { message: \"Protected route\" };\n  }\n}\n```\n\n## Module Options\n\nWhen configuring `AuthModule.forRoot()`, you can provide options to customize the behavior:\n\n```typescript\nAuthModule.forRoot({\n  auth,\n  disableTrustedOriginsCors: false,\n  disableBodyParser: false,\n});\n```\n\nThe available options are:\n\n| Option                      | Default | Description                                                                                                                                                              |\n| --------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `disableTrustedOriginsCors` | `false` | When set to `true`, disables the automatic CORS configuration for the origins specified in `trustedOrigins`. Use this if you want to handle CORS configuration manually. |\n| `disableBodyParser`         | `false` | When set to `true`, disables the automatic body parser middleware. Use this if you want to handle request body parsing manually.                                         |\n| `disableGlobalAuthGuard`    | `false` | When set to `true`, does not register `AuthGuard` as a global guard. Use this if you prefer to apply `AuthGuard` manually or register it yourself via `APP_GUARD`.       |\n","readmeFilename":"README.md"}