{"_id":"@authxyz/adapter-mongodb","_rev":"2-dc651c8c118d868e3e0d0e6e8cf1af5f","name":"@authxyz/adapter-mongodb","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@authxyz/adapter-mongodb","description":"Authxyz official adapater for mongodb database, built using Mongoose ORM","version":"1.0.0","license":"MIT","main":"dist/index.js","type":"module","homepage":"http://github.com/kisshan13/authxyz#readme","bugs":{"url":"http://github.com/kisshan13/authxyz/issues"},"author":{"name":"Kishan Sharma","email":"kisshan07@outlook.com","url":"https://github.com/kisshan13"},"repository":{"type":"git","url":"git+https://github.com/kisshan13/authentic.js.git"},"engines":{"node":">=17.8.0"},"scripts":{"dev":"tsc --watch","clean":"rimraf ./dist","build":"rimraf ./dist && tsc --incremental false"},"keywords":["mongo-adapater","mongoose","mongodb","database","adapter"],"dependencies":{"mongoose":"^8.2.1"},"devDependencies":{"@types/node":"^20.11.24","rimraf":"^5.0.5","typescript":"^5.3.3"},"_id":"@authxyz/adapter-mongodb@1.0.0","gitHead":"d6f33a3b0a13a3ab7225c793345ae6bd85575d47","types":"./dist/index.d.ts","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-JPKecvHUWKxkRc5kKMylXjGYiDvfy1l4YsOh4XlyaXVi4EJjVVdN3zUJN12mup4/G7ZPJhryENE5GPgqnUPTDg==","shasum":"9e5726d97ffc24bb39beeba8a6b5d408a15e7672","tarball":"https://registry.npmjs.org/@authxyz/adapter-mongodb/-/adapter-mongodb-1.0.0.tgz","fileCount":12,"unpackedSize":12757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDcfDn4ACRxaDJpDNYHcfm/I3GlPHCZB+MsiZt81Ju+AiEA/ZtPxU1XSWAZPVGl0I0A7Z44sxHz1MlSTXSZlYsW1ls="}]},"_npmUser":{"name":"kisshan13","email":"kisshan07@protonmail.com"},"directories":{},"maintainers":[{"name":"kisshan13","email":"kisshan07@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-mongodb_1.0.0_1710834111886_0.6863162416891864"},"_hasShrinkwrap":false},"1.0.1":{"name":"@authxyz/adapter-mongodb","description":"Authxyz official adapater for mongodb database, built using Mongoose ORM","version":"1.0.1","license":"MIT","main":"dist/index.js","type":"module","homepage":"http://github.com/kisshan13/authxyz#readme","bugs":{"url":"http://github.com/kisshan13/authxyz/issues"},"author":{"name":"Kishan Sharma","email":"kisshan07@outlook.com","url":"https://github.com/kisshan13"},"repository":{"type":"git","url":"git+https://github.com/kisshan13/authentic.js.git"},"engines":{"node":">=17.8.0"},"scripts":{"dev":"tsc --watch","clean":"rimraf ./dist","build":"rimraf ./dist && tsc --incremental false"},"keywords":["mongo-adapater","mongoose","mongodb","database","adapter"],"dependencies":{"mongoose":"^8.2.1"},"devDependencies":{"@types/node":"^20.11.24","rimraf":"^5.0.5","typescript":"^5.3.3"},"_id":"@authxyz/adapter-mongodb@1.0.1","gitHead":"571bbd8af2813eeb82219640a25b7af062bfd10d","types":"./dist/index.d.ts","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-AJZb0MblbVj/X9fTC/kWw+ZQ/NWocs1GJ7VANJ2zH1kbPs1GdFB27fpdQZB7/P1forTF4nC4wiCOvQ4j8Dt0nQ==","shasum":"4bba92b21cd115ad996260f0e0982096648b74a4","tarball":"https://registry.npmjs.org/@authxyz/adapter-mongodb/-/adapter-mongodb-1.0.1.tgz","fileCount":12,"unpackedSize":13265,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJOF+l645lisgf8GhXW8RIg2oadehcajgCZiLiEF8cUQIgCyooZXcocBLH1eV5uaMorILOg9ORHlBw8VPES1xJHNA="}]},"_npmUser":{"name":"kisshan13","email":"kisshan07@protonmail.com"},"directories":{},"maintainers":[{"name":"kisshan13","email":"kisshan07@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-mongodb_1.0.1_1712289788675_0.10811867406391906"},"_hasShrinkwrap":false},"1.0.2":{"name":"@authxyz/adapter-mongodb","description":"Authxyz official adapater for mongodb database, built using Mongoose ORM","version":"1.0.2","license":"MIT","main":"dist/index.js","type":"module","homepage":"http://github.com/kisshan13/authxyz#readme","bugs":{"url":"http://github.com/kisshan13/authxyz/issues"},"author":{"name":"Kishan Sharma","email":"kisshan07@outlook.com","url":"https://github.com/kisshan13"},"repository":{"type":"git","url":"git+https://github.com/kisshan13/authentic.js.git"},"engines":{"node":">=17.8.0"},"scripts":{"dev":"tsc --watch","clean":"rimraf ./dist","build":"rimraf ./dist && tsc --incremental false"},"keywords":["mongo-adapater","mongoose","mongodb","database","adapter"],"dependencies":{"mongoose":"^8.2.1"},"devDependencies":{"@types/node":"^20.11.24","rimraf":"^5.0.5","typescript":"^5.3.3"},"_id":"@authxyz/adapter-mongodb@1.0.2","gitHead":"1480df6dceab60fe0effccbe6532f13a8fc765a6","types":"./dist/index.d.ts","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-9Uq8CLVkC3dxfnDKna4bJ80ULTIGzoC31Kv0bAC2pCzLZmAhnxJ5cIwI4cjF1M+JYCEKbk4VhwbcRQ1UvZ7xeA==","shasum":"52442a7cf52a6fa14129c0108a5e479e2c3439f8","tarball":"https://registry.npmjs.org/@authxyz/adapter-mongodb/-/adapter-mongodb-1.0.2.tgz","fileCount":12,"unpackedSize":13449,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApDHOdIT9uVHtqikFm3GHvEvjYXPPQramVmgVf1PbL2AiEAkEfjRE3wVchCXOUIq24nLnPv6+8U419ASUQH/IX/7hA="}]},"_npmUser":{"name":"kisshan13","email":"kisshan07@protonmail.com"},"directories":{},"maintainers":[{"name":"kisshan13","email":"kisshan07@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-mongodb_1.0.2_1713452991121_0.6314913989840318"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-19T07:41:51.781Z","1.0.0":"2024-03-19T07:41:52.035Z","modified":"2024-04-18T15:09:51.498Z","1.0.1":"2024-04-05T04:03:08.829Z","1.0.2":"2024-04-18T15:09:51.279Z"},"maintainers":[{"name":"kisshan13","email":"kisshan07@protonmail.com"}],"description":"Authxyz official adapater for mongodb database, built using Mongoose ORM","homepage":"http://github.com/kisshan13/authxyz#readme","keywords":["mongo-adapater","mongoose","mongodb","database","adapter"],"repository":{"type":"git","url":"git+https://github.com/kisshan13/authentic.js.git"},"author":{"name":"Kishan Sharma","email":"kisshan07@outlook.com","url":"https://github.com/kisshan13"},"bugs":{"url":"http://github.com/kisshan13/authxyz/issues"},"license":"MIT","readme":"![Logo](https://media.discordapp.net/attachments/1183600181405564992/1219535288729210990/authxyz-adapater.png?ex=660ba7be&is=65f932be&hm=915bca42ee9134640852b13549205ad2310ffc12778b2ba7a637763a7d99c8a4&=&format=webp&quality=lossless&width=1440&height=276)\r\n\r\n#\r\n\r\n`@authxyz/adapater-mongodb` official [authxyz](https://github.com/kisshan13/authxyz) adapter for mongodb database. [See Documentation](https://authenticjs.com)\r\n\r\n## Quickstart\r\n\r\n- Installation\r\n\r\n```bash\r\nnpm i @authxyz/adapater-mongodb\r\n```\r\n\r\n- Adapater Initialization\r\n\r\n```js\r\nimport Mongo from \"@authxyz/adapater-mongodb\";\r\n\r\nconst database = mongoose.createConnection(\"<your-connection-uri>\");\r\n\r\nconst adapter = new MongoAdapter({\r\n  database: database,\r\n});\r\n\r\nadapter.addUserSchema();\r\n```\r\n","readmeFilename":"readme.md"}