{"_id":"@bolkauth/driver-mongodb","name":"@bolkauth/driver-mongodb","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.2":{"name":"@bolkauth/driver-mongodb","version":"0.1.2","description":"MongoDB driver helper for BolkAuth wrapping MongoClient and @bolkauth/adapter-mongodb","license":"MIT","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/Shreyvats01/bolkauth.git","directory":"packages/driver-mongodb"},"publishConfig":{"access":"public"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"peerDependencies":{"mongodb":">=5.0.0"},"dependencies":{"@bolkauth/core":"0.2.1","@bolkauth/adapter-mongodb":"0.1.2"},"devDependencies":{"@types/node":"^20.11.0","mongodb":"^6.3.0","tsup":"^8.0.0","typescript":"^5.3.3","vitest":"^1.2.0"},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run"},"_id":"@bolkauth/driver-mongodb@0.1.2","bugs":{"url":"https://github.com/Shreyvats01/bolkauth/issues"},"homepage":"https://github.com/Shreyvats01/bolkauth#readme","_integrity":"sha512-dsy/MDn4i9bWGHcJzVQSSLe3s6idz9QvlyRdDVnCcUYOnsH+A1XzIEpU04aZJqDKLrWJDPYNXEfA/WadUGaE4Q==","_resolved":"/tmp/fb70f263f134dba5430867dfb55a15a4/bolkauth-driver-mongodb-0.1.2.tgz","_from":"file:bolkauth-driver-mongodb-0.1.2.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-dsy/MDn4i9bWGHcJzVQSSLe3s6idz9QvlyRdDVnCcUYOnsH+A1XzIEpU04aZJqDKLrWJDPYNXEfA/WadUGaE4Q==","shasum":"8e0a65fbe00d4266b3630453c19e6cbd275e00e3","tarball":"https://registry.npmjs.org/@bolkauth/driver-mongodb/-/driver-mongodb-0.1.2.tgz","fileCount":13,"unpackedSize":13061,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCPJDcITml/gIN1oqz9koN0V54lY6Rr7nMh4aqpwF+nzwIhAIxp6BsAMcQKeeNaDoTaDLwOAUh3SIWZtbo5FrUOhznQ"}]},"_npmUser":{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"},"directories":{},"maintainers":[{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/driver-mongodb_0.1.2_1785789341863_0.012809212786851765"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-03T20:35:41.696Z","0.1.2":"2026-08-03T20:35:42.026Z","modified":"2026-08-03T20:35:42.265Z"},"maintainers":[{"name":"shreyvats01","email":"techtechnicalshrey@gmail.com"}],"description":"MongoDB driver helper for BolkAuth wrapping MongoClient and @bolkauth/adapter-mongodb","homepage":"https://github.com/Shreyvats01/bolkauth#readme","repository":{"type":"git","url":"git+https://github.com/Shreyvats01/bolkauth.git","directory":"packages/driver-mongodb"},"bugs":{"url":"https://github.com/Shreyvats01/bolkauth/issues"},"license":"MIT","readme":"# @bolkauth/driver-mongodb\n\n[![npm version](https://img.shields.io/npm/v/@bolkauth/driver-mongodb.svg)](https://www.npmjs.com/package/@bolkauth/driver-mongodb)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nMongoDB driver factory helper for **BolkAuth**. Connects via `mongodb` MongoClient, automatically configures TTL and unique collection indexes, and returns a ready-to-use BolkAuth MongoDB adapter.\n\n## Installation\n\n```bash\npnpm add @bolkauth/driver-mongodb @bolkauth/adapter-mongodb @bolkauth/core mongodb\n```\n\n## Quickstart\n\n```typescript\nimport { createMongoDriver } from \"@bolkauth/driver-mongodb\";\nimport { createBolkAuth } from \"@bolkauth/core\";\n\n// 1. Connect to MongoDB and set up indexes + adapter in one step\nconst { client, db, adapter } = await createMongoDriver({\n  uri: process.env.MONGODB_URI!,\n  dbName: \"my_app_auth\",\n});\n\n// 2. Initialize BolkAuth engine\nexport const auth = createBolkAuth({\n  adapter,\n  secret: process.env.BOLKAUTH_SECRET!,\n});\n```\n\n## License\n\n[MIT](./LICENSE) © BolkAuth\n","readmeFilename":"README.md","_rev":"1-cb2a4a9f82b57630c64ea2d90e468121"}