{"_id":"@next-auth/mongodb-adapter","_rev":"33-4e20e2733df696689fb5ecca15d5456f","name":"@next-auth/mongodb-adapter","dist-tags":{"experimental":"0.0.2-pr.274-8c5c0fd1.289","next":"0.0.2-next.298","latest":"1.1.3"},"versions":{"0.0.2-pr.193-6071c497.276":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-6071c497.276","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-6071c497.276","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"650af5058082183c8638a9b93e23045039bd2533","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-6071c497.276.tgz","fileCount":5,"integrity":"sha512-tIzm0Z59L8eEU5AzXzsSLubG+PuZaUXu7IZIlYjcEiNed7Hgu4Dc0pDnxOgg5SbGTeahv9h3MK0MksLPVwJNoA==","signatures":[{"sig":"MEUCIA8H7X9foD2lgOUdlsFp3CXqiJtuDG1rww0lSqnjsZmMAiEA0fWUN1+Cd1F/YLSC6aSE+yP8Xr/h0c7wJYjpKZKQ/9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKoz9CRA9TVsSAnZWagAAfmkQAJToP6672VgJyVpwiNYY\nZyKNgJ//iDQexERGNAek2d9PNZMibpLqUe0F7j8RUn4A6DQyFrXXALwRnqLS\n0u9935T3LduVi26mEcivuLR0yJ2G9Qdj71tke4VUlpPFl0I5f5NSE05+HjWq\npcYx4L7K093tWlzo1IS0vwFBiY0Ct6bsedPqNWvOCk9aqWZQk7ggvoDnxni/\nju4M7uuNJiuv0qWXxHbbUr3VkqHMHNau6V352cdwqMXdcTzKon744IeLZXSd\nLVtGzrUTwVYZg+eUEnF3cHISFku2PG0uWWi/1uwOyxGdWQvYXnSCw2QnGokO\nK8bjr+RncNQXhA1rxm6YTs6TyFchcp0/WxWhYYVNV6cYjYJ9MCpJHkxzgIFm\nkaUqFwFh6a79y2fCNuvo5otR12ONxeSD56ygcGw/wjnGgc2rQ2WSo0Xd0yBV\nqUGl9Dj/g/r2KTXNYQUMHnoEd9Dz1uZq+/XLaK/IOR+LUW0TRItfbeC7lWvC\nL/v+OFaBbeZ8HiBSz+O98IkHM2Zg9iNwf4V7Mu0EpBehx5iYEQaoVsJ0N1In\nSYq2qHaGHUwzHgpMJmshwMpFEuWGZMXnx0fMK9wEJ6Lo5Tk0Pliu09u/Fhw3\nBW/JeowhAIg/NhZAKM5WMPzkF5fqZtMyZWCYT3u2CUdgW/wduDLNjkyEvNqP\nwklf\r\n=r1pp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"6071c497a25a0aee111a16fc164245f6161e2d4c","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-6071c497.276_1630178557603_0.30738583737607983","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-82a849cd.277":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-82a849cd.277","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-82a849cd.277","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"2c7c80104451451c19a573f9f832ad2588796fe2","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-82a849cd.277.tgz","fileCount":5,"integrity":"sha512-CGmXu5TUXbfIRlqSoaFpJjolIA9ebym6q7rYxKTFb3o+ztTw4O175b4N4/1tYBHnWyE53QyICfKiYQ8OpqxiFg==","signatures":[{"sig":"MEUCIGvB4jD1ClAf9BQXZWXUX12wRxrmGyybuSVn5EXP153MAiEAgS0iLtKMJqIDa1pwX1ja2JtFuUPTRcjQtzFIlpsd6Z8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKo+jCRA9TVsSAnZWagAA2hgP/3WzK0tCVjQErEYJxkst\n7OYpnsk0aweLxz4odcV0qdPpnhNs6hn1AQaF8IUQGoA8Agsc/oq5rxztl8iS\nxf28QL16b77O4TPfwa7JFjYQPOptEuJWUVVihiy+ZQtNbg4Q2oR+2u7YsckJ\nMjwrR8F2bbQWhgxp8uJ/rL8X5NH/CGLUHuT0fRWvZ9lwS6VldLtBfDcOd4Az\nzAVBLy5m1GhDtptjABhLBZNu8C+Gs2JtGObp4IuRSJOzJNaLQ8nnXmw95sm/\nSslnd98gr3+DFJ+6TVH1mxBYY1bBZR6haS/lv5RS7fplPE2+qv5JPSWHdu9q\nR7DrakfrCfvLaZwo44knMsbDm6x5MK8zd99TUMFrHaiqdvvKBPdFj4TwxJXO\n5Qr8mtMu4vWlNMZcnuc7l9l9GTKFde9/NgCf4czEBdPfcQSXnAuRbt7i17H5\nzkAhXIHqJjy+3pJXFTdCQe6CyeskzJJcp6/81t99cC9730mGnxV8u0gqJePk\n9V0x2KcSXBm2ww+70c8nCtDF8d5UZz2SxRvnoyTiTlo5fJIJmzSjhMGF0PaD\nl7gwXB2oKYjrf+o0AFLeGCaevMJQOJA0oPA5Wc+ETfkCzqwxxQGnWTCytuAJ\nSIglLcrG8P7tvuDwuAPh2W9oPuc431yBh5EjcxztGFXe1lsIwjDOVpwYTvBz\ns629\r\n=pUq8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth @next-auth/mongodb-adapter\n```\n\n2. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport { MongoClient, ObjectId } from \"mongodb\"\n\nconst client = new MongoClient(process.env.MONGODB_URL)\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default NextAuth({\n  // https://next-auth.js.org/configuration/providers\n  providers: [\n    Providers.Google({\n      clientId: process.env.GOOGLE_ID,\n      clientSecret: process.env.GOOGLE_SECRET,\n    }),\n  ],\n  adapter: MongoDBAdapter({\n    db: () => client.db(\"your-database\"),\n    ObjectId\n  })\n  ...\n})\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"82a849cd4748d2e1ae17816f2c87cca06a7d0386","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-82a849cd.277_1630179235807_0.830646573644988","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-e833dde8.278":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-e833dde8.278","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-e833dde8.278","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"1df670e5bd4819cb1a3e9664b55aa0226d3e8ab6","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-e833dde8.278.tgz","fileCount":5,"integrity":"sha512-MycQOmRSuogD0B6srrjOF+ILuQbJhzUkgQJm8rI2omrhjtuyOUYMOUIajXGXYUW98K+7iHEG3XYaen2aq/FK0w==","signatures":[{"sig":"MEUCIQD6AxUnZV4glXt0pYd7GDoBmRxzBzVIQL5hmutldTh/HAIgW+Lx1acI3SKllFHJmZicHOKQ4+1HiQ9pLiJVrg7eang=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKpcTCRA9TVsSAnZWagAA1kEP/Awk6VD+Ha3oqm5Dakk5\nq8tecFqHar8DUbY20c7Pz/bfEpEfXcBRiz4y3aHoKXJuibuteyUgBYxB/tZj\nUEyjyysBMd818rl7fZO+lrKk34w5fkjbQeNxLxtdDoyAYw6boZQGOuhCku0D\nI//zfl1ALQD5bqUaN1K55pV0VW8WNciUmrpO9OkuPCw1O2TXsFNn6m6rgbBa\nO7mnCe+kSoRfbPpFR6n2rJWJDKbPMbqzMCt5tw84cbdbKm1XFtYfGamOOCRj\ngLPPh2hMrFM5ra+i5SUiawL2rknsvA5sasqsjBbEhFb4lZAmAPKpSWUdGAIe\n7ckTplzNpOFOz4pN3xt9hFToq4jso3+slaEkrU9FsMARsOukM604whln6yVr\nrrov8RhcxRXhJNRpZm632Hhoj+YB+Gvv/8jR966uFi5EOzZSZGDOE17tbXJo\nMGtdQoMZL8FwE9RuGOhlwLfO3B5PxHfu4XHlOwGXctlEhAPi9v8gDWLfBJlK\nQeybIgjeDaqGMi52LmmCE8WNOai5fDRfboVKLIEAj+M3PWEi6+6P7c0RYpod\nfrU0dvOcSi8DAfg5zlVQiq4/OjpP/PkuDKI+PgxlRGLabEtq2xk543FKNQpe\no5QoTQOIrjGmtF0DSPJWUKCgbXI/L6H4la+t/oHVXQFXoYQqykkXuK0YaM+w\n8Job\r\n=B1a7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth @next-auth/mongodb-adapter\n```\n\n2. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport { MongoClient, ObjectId } from \"mongodb\"\n\nconst client = new MongoClient(process.env.MONGODB_URL)\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default NextAuth({\n  // https://next-auth.js.org/configuration/providers\n  providers: [\n    Providers.Google({\n      clientId: process.env.GOOGLE_ID,\n      clientSecret: process.env.GOOGLE_SECRET,\n    }),\n  ],\n  adapter: MongoDBAdapter({\n    db: () => client.db(\"your-database\"),\n    ObjectId\n  })\n  ...\n})\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"e833dde889f8e9d6aee545cd2b172bfe96bdca09","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-e833dde8.278_1630181139151_0.43415292600441147","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-b9ed40bc.279":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-b9ed40bc.279","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-b9ed40bc.279","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"e5eb96ac3dcfdef2cb806c7a0fdd70a2a178ae99","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-b9ed40bc.279.tgz","fileCount":5,"integrity":"sha512-/7IMkxJI0uvlitKdqeY1UVSJpmajmi1UgS1r+iGOjnswQhTfiAbKGjEOraunBguThuZ/7pQaG8mfSqQ/WbiHPw==","signatures":[{"sig":"MEUCIEAewBlHeQMmQBTvhy+pYuecmwEUgP77JM6cftH7vFvSAiEA3pGVEAi081dReMx0rBT8aBQ3u5eh3nw6DVxt4wJv5QA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKqHhCRA9TVsSAnZWagAAxmoP/Akrr6htEpvVHim32CKD\n2z4cS0mtXv4RmJO9LOjpHShgtL3YiLdjaiy7uVvXivyx3AKWdmY92QQ+cNmk\n1Yx/XV1SAd5j6bpY6b5Ada2jMBbHbEHPJ+jWnbB+wYjPpoxrMrJN3OxqEoVU\n8XTIFtr7KXEy/KlD/bmPotAn/Dyb6psAV7e/QNtMMp6Iu1Ghaa6K8IxdMmQO\nNWFjzfSEU7aTQbb4NeZYaivWNEa2cmNe/BEDWhDUk2EmbHNs2SIL6mDLx5AJ\naApT91bpGSDOVVPizPRqheQopa37dxWE2rE8hOEGwYnDoDVDHmpTfXzsUWSl\n2Ryov4fJOeii54+Xbz7UffAEW8+DOTLj0Hq709CFfRjlPbgkKks+Eyov5aKz\nWXrC408dLTDvhR+tDthvKcMzJMfYGEOpYqMq9PqnJmIuiE/SbHhvT6qCkVtX\nP5+vP1u3kPI+IzVOiIHtnoVgFE+GNLIZdwzDNarmjsBI+FbINC/J58A8tVUs\nj30LqyiXPw8dvV0a/jmXuzZKEDU+P0q89P/L+CbTzxNex9NFbixG5ScYMc0v\n9RmezCt5RIvDaJ2KG+bvPStFGJUZhr5e55P/3ho/wUqkQ6h8CDmsPcM+ksbn\ncuwjckz9SJ3D/4VlPHOwLd8dRNf4RcEoiA073/JayTjmBV9zx8fgQ276CoFX\nKLCL\r\n=4ksY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth @next-auth/mongodb-adapter\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport { ObjectId } from \"mongodb\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\"),\n      ObjectId,\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [\n      Providers.Google({\n        clientId: process.env.GOOGLE_ID,\n        clientSecret: process.env.GOOGLE_SECRET,\n      }),\n    ],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"b9ed40bc0f009240c31b18853cd99ae34d696774","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-b9ed40bc.279_1630183905768_0.33349433272609796","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-038f8cf0.280":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-038f8cf0.280","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-038f8cf0.280","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"55931f294a447fc1b24ede708741563c30fd6885","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-038f8cf0.280.tgz","fileCount":5,"integrity":"sha512-qETTKq1DmfZnBtdYy/wnRRw3T2wlMMyCPfFfoyLiDGkGuJ27HMKe82KvSYphY/nV0uvl/h0Azu5Bf3RC3QmdpQ==","signatures":[{"sig":"MEUCIHXgyykWUj5ur7ZV7p74bAS2hIxhTT7eDJ22zngHjRxgAiEAz/Nv1Cmtcpy0mDdKPvWuvKP3Ogo/ucSlEYYZ84LoQSc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMVBvCRA9TVsSAnZWagAAej4P/RMKvKWgccGH1wOOSyiV\n4Gls42g+p4zeGr4PLm+LEH9MvZqT2cP/xi3RqY5P+FzbYbCTdevNjf1v++ZZ\nA7JLNPGJty0VkCGH8+cW6BCL3EZBKcrTzJ5w2t99puVK6eeSIcO0MlHQApfc\nED2TOB5S1RvNm/CODWp+heyauMv3burwq62ARqZbhleFdNXqEh1vf9HLgYGS\nnysYJGUKuAIrlbRAFhQn1WGqzv6ti4P/jty1Z8t3/7bShYnstNR+MEQ+55yN\n5zUrLUJ+nAGAV8mWhLX+zfu8KAW99ucbPmxscO5mOoj+qbbD9cdBkapl54vo\nr5Ax2+AX8F37qnxrdXl6n8lg5kG6glsR7+7gmTCiGV6+q1Q+0HlwmpWSnkVP\ntkhc48wfUqTLiykwGUMXxVOi2p5iVCYkvaUCEqRvRoK+AlZ7FABWI1VUSQlN\nP51v7PwnzuBtNPptpjfrke63XHybUmZn6LGynl+QW7RvxLePM55o0N+uXyuv\nmE5fW3CPiSmsvyIBAtD8nFalECWglLYEWmCU1w1g4t1VGu2vjg+MgXt9WZhy\nQAtuWVDTGtGXHL/s1vDoOmfJyR6LdwWJm9UwN/93Mn7wDboK5EFKCNSDrmmo\nBcK9ftUux6VQeUVlZj6my1A5ppL1qbj96AWA61SaYrbOazVIX0TjM7FVVZ+o\nm/GJ\r\n=c+RD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth mongodb @next-auth/mongodb-adapter\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [\n      Providers.Google({\n        clientId: process.env.GOOGLE_ID,\n        clientSecret: process.env.GOOGLE_SECRET,\n      }),\n    ],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"038f8cf0a6b485ec9a45c745e8c3f4c95426afbc","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-038f8cf0.280_1630621807520_0.5179988623093157","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-4f0ef7e6.282":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-4f0ef7e6.282","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-4f0ef7e6.282","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"bc02625acf2e850126466a319a172aa9850b3b3e","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-4f0ef7e6.282.tgz","fileCount":5,"integrity":"sha512-mZ3YUbhiM5gF5QA5crfR3oyo8qnT5e7QWdF1N7siLBJw9y4lNsmjJyHaD6I6kawXMzQqo1gRuqMJZwoLwg/0mg==","signatures":[{"sig":"MEUCIHX8wbqXyDlQODGDjf9thl+5poZE3qrL1kicgPC/NVnGAiEAtRD6iyRKiVmJqIku1l7yDg0QandjGBXfEDABVqNG7lI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMdtICRA9TVsSAnZWagAA9zkP/2gWz1yAxC1jbZQWNKCr\nhLr6f/4GevztvAV3LlIrZ0PdFb6X02MopAXq2YsmUwxhIp9W/9+3SN8gEa1f\nlwgFFih27LI1vmzxejPy9nDu39Iq8SrTgY4YI8t3qzCFV2B1mDch23ROqF2k\nA7CXVGp9/v+3jjWhNqNmsqInwHyitjmLN7xvsEsbreFgHY9+9jwRQ5dHzVkc\nC+YmprLDBJUtZcAa2XBh7JWAZwit/Xy949iQuie4S/e4Y5KwKjTgWgAQgKPa\nPuvfvFhFBQui8LKvN/rSh0xp/nTTlmKmI/H9jE0i6Wym+fJXhjh+9CS9m1HV\nNWQsV4nVmsnSLm+houPxh/5d3hBNqqaHfvWNRuSh4wFOMCcwchydtNblCj4J\nTz/0Lnj8iPreEbisweklk985GxT7nNlHehDOCoybNwBHHmk1nhwWQTEF1Wi4\naNu6vOHwNB+fHRLstWiDvgksKlzhX88IZCVfaJv217pTCkl24ESKhM/SHSM3\n2p4b/34tX2AYNRQZ+YB6kzoQQz40jShE93AUx54jiCRzE847S3Jbit+MMUOq\nGW0ZrUwo6nljaNVYHD/b1L79+w8y9pN0ZOagOyn3TQxCJUULlAVXR6nhXuJb\ntztabS81R6QkI3YpYpyg4+oObbTWYRLOCuiFW+BaCvT9RJs31FErcCWx8ta7\nH8Ve\r\n=UQdV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth mongodb @next-auth/mongodb-adapter\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [\n      Providers.Google({\n        clientId: process.env.GOOGLE_ID,\n        clientSecret: process.env.GOOGLE_SECRET,\n      }),\n    ],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"4f0ef7e6d0d1b6292cfbd5829c6f77f943e666dd","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-4f0ef7e6.282_1630657351373_0.016192901617595012","host":"s3://npm-registry-packages"}},"0.0.2-pr.193-1fc34f1e.284":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.193-1fc34f1e.284","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.193-1fc34f1e.284","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"502f847fa40e2d76ddfba7f1e9604c029ed999b1","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.193-1fc34f1e.284.tgz","fileCount":5,"integrity":"sha512-wYGQVhEOHnWkCDQEBDmii/gNgvYZwlVKyEQly2PP8kgkIeIxIWKh2rMAaor61REjRLbfnaQ42hIM8/MjZUf66g==","signatures":[{"sig":"MEQCIGswDzZyAItyCzqfn3lN9jjk2GDQSJemdimLORuc9oXvAiBaM3dKDokYnEvLs+lPqyfhY5BD1BkYpxmAcxT/6IhHGQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11106,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNKPFCRA9TVsSAnZWagAAjBcP/AgsJHXe2/vWEcCOuE9b\nTjPGjAQi9XmkthRT6du9rio2qsB3e+CF87PE/yBK7parkZJGQu5+Y08l1mRT\nl9jpXExv57fyf07fymO6QdcafQxzwl7wS4PScilmxJDNJqg3E7uu9FwFOj1B\nUq50BtIRKo5yjVRrMYgZZ36hsdZZCt5w3TY4oCkLpG2Wf0OUsS57mCGtE5eP\nUMDvgEJS31zlxxgyOQK8BePgOagbUHg3wxrZn8PMT81BFnKT2UcjkKGp4eJt\nSIvjdaV8Ih20alBe5mNMSeJvu9ckPoAxKNvM1uPq28sWJFqGedfjpiM08JRJ\nSDolluSQ49JdiB8rVFHHsOrmZNZ0BaM/6Qh0MO1kRmcNQifYbaIfEZ2LL1ei\nXc6G3wNsAeBBoA5oPnvfuxWP6GRuwIgQ2dbOzovwOFLBbq3I+e9s0CZOm4QN\nbkLAKtkjyTZ9E/I10e6+JPMoNJ5Qnn+g0/MWHgHetEbHCCa5y9UFGlbKaGiX\n/x8AQbw75D6FzK8yWpnFXoHcAwq0pm1rwaXPp4BA/e7uleG6rejFnZHMVHhr\nlmycMocU3yqUavwK7tux+LBneK2ko3iehfRRUtVF4gjBWwZH/b8h+Z9LNgCq\ngSGzTLvvHHL7zjn/H3XhzICfYd1Bbc6jIRXLq+s98W3wmwwCSuEk2v1sLlql\n/MVh\r\n=lpSi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth mongodb @next-auth/mongodb-adapter\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [\n      Providers.Google({\n        clientId: process.env.GOOGLE_ID,\n        clientSecret: process.env.GOOGLE_SECRET,\n      }),\n    ],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"1fc34f1ee595b7cf4ccd12f67259c6fdc0a8cf09","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.193-1fc34f1e.284_1630839749753_0.5104583522848498","host":"s3://npm-registry-packages"}},"0.0.2-next.276":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-next.276","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-next.276","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"bed478c6a9fc8811e7efba1385bb9e7d0d81db4f","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-next.276.tgz","fileCount":5,"integrity":"sha512-6lpOPzcuCDPwf2cNOAgQMIvu1+WNFK//EPZGGvPURZsjaxYk5UX5hBD1tQGYpCaa1OxphhiLguwQskblaPq/cw==","signatures":[{"sig":"MEQCIBlUpI3HQ3+7W3hytdF0vTmljTQcPBuIWXNQ4wKLCugtAiBNsHGSM7tDE4EQ67Sg2UZTB/qF6dBxGKDVTV2SBim9Nw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNKRYCRA9TVsSAnZWagAATTEP/2bvXK/iGqk0jVcJX4Wh\nMJD39RKhtBTI7Eh+/ohUcjKoObW31qVanNPKvvJMXJ6FTRfTPmq9BIuDxBP/\npfjE/a4i770Dvdmt2G+C18tOzouWYpL+r6m8zXghvxgIoBPzX9tcvzMaZc5p\nhEgL2nOj4u++ivbqG/1wpFfLMQ5MOYH/b8qyOj/GN0rioyr0LSWtkmzFRtt6\nPlA+GasNRrNaoJbiIknm3I2AfTpdBbEgeu0EeebeHKH5vP063/BONIcowjgy\nLgxohmie34JhLNlEIi+aas8uidBp1kOk0y1UhsXXX+Vj4MBHY4ovJaphjNyF\nEwe9YkngIl4lCIGVCr68X5Sd8nK/H70NOZvqDv8jCZNd11+7b9UIrSmziFUc\npj+dgt8zv3FV8a1hHp7wrDcjGngXKRy8Fru+93JvvleE185w2nRy80i40ODh\ns8J6BAEAFz/aglB6slYnacWrjaZe9iLHsztseY5wzY+Ox1q4g7fTRtrVE5aC\n+Z9QKYLLw7Xzbq9J7V5NBTrT9nU01cU+tXzrGgRuLJOLJJKXNKQ0BpeMPorZ\nhWeWCxCz6rOhiG6Z9RsGrbf6yuBDVe3Zwo9d3W72HsyuRASTH4pkxWEWsCt6\nBdnfdf3WcWrz6H8S80ydrYIx3Sz1YCA0t02KfqblsbiK3T/H6NOkR5wkIFuo\nFDEX\r\n=pS7P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/>\n      <img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" />\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `next-auth` and `@next-auth/mongodb-adapter`\n\n```js\nnpm install next-auth mongodb @next-auth/mongodb-adapter\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport Providers from \"next-auth/providers\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [\n      Providers.Google({\n        clientId: process.env.GOOGLE_ID,\n        clientSecret: process.env.GOOGLE_SECRET,\n      }),\n    ],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"f713057299fc21edfac513df226c67398bfbcee4","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.8.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-next.276_1630839896727_0.9769656248389511","host":"s3://npm-registry-packages"}},"0.0.2-pr.249-f85d2a06.282":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.249-f85d2a06.282","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.249-f85d2a06.282","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"85db5c611763523a63cd97d0bcf660ec1509a132","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.249-f85d2a06.282.tgz","fileCount":5,"integrity":"sha512-7EAPrdBNOMDdzLWfxFTiHcTbM8iGxd3QwwwEb1Omrz9SmiMOZiCOdqZjt3q/SX0ZwZzLkFIehhrSmJI5m2p+fQ==","signatures":[{"sig":"MEUCIGf5zYFR7BJixtOkoRGmUAaifOjobuMQm7hjz82xKQ4/AiEA+C1F1cQ23o6jd2cn50TliGN5IYGamPWk8LNVsMsAD5I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11137},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"f85d2a06c6b4cf360a14150a682fb277e83ba9f1","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.9.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.9.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.249-f85d2a06.282_1632093066196_0.22603223012563745","host":"s3://npm-registry-packages"}},"0.0.2-next.281":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-next.281","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-next.281","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"e1680088dfdd5bb5be058d2a54dcbd5cbbb256f4","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-next.281.tgz","fileCount":5,"integrity":"sha512-86teWHF1V0rUi1Z4qp+wvcwvdpPTAtcN9LMpFgCVrkdPKFh5AkyRMvgWVEnlVlEatBMsALqqhtFzhDGn8ZigTA==","signatures":[{"sig":"MEUCIFbIGgWWS51Bgrfvc7veHMrjRg4XsOQcO+j5UyaSP6DQAiEAtRlFjossO6CDBvogQMKnthwJuD+y4Rd+kv8ZBFwfHeA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11126},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"4eab2965a5e6d003410c6364f8b4e1d567c1e1ac","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.9.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.9.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">=4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-next.281_1632126626435_0.6908918203085952","host":"s3://npm-registry-packages"}},"0.0.2-pr.274-1f84ed05.287":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.274-1f84ed05.287","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.274-1f84ed05.287","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"06a6148649ccffeff80f2d656d52fd64e5a1c387","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.274-1f84ed05.287.tgz","fileCount":5,"integrity":"sha512-7nd3r9wMM5SESZWMmEjwX7hOe8Gg8LoHtKs5i/okalrIppQmMBem1rY5itZXPoYrm1AcOQrA6q1iPOuNnLrwVg==","signatures":[{"sig":"MEQCIBN7CO93TJnzw83gCUBEK1TMQJnJ2+o205q396s/DffIAiBimNixNa3bWotDVAyOhfRY9fpw+YNDpxR8Khz0FFJ56Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11167},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"1f84ed052b301969fed64d2feda193d1317d109d","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">4 || 4.0.0-beta.1 - 4.0.0-beta.x"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.274-1f84ed05.287_1634680045059_0.1459364149142539","host":"s3://npm-registry-packages"}},"0.0.2-pr.274-a0f16145.288":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.274-a0f16145.288","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.274-a0f16145.288","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"5765ceb8a6932c3fa6b58074183079d4e3f02112","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.274-a0f16145.288.tgz","fileCount":5,"integrity":"sha512-/H4Zuxsp01z+o02Rvy8dRQD5W6DrJPtBX6LlnjVf4A0IIVbZ5sxU5QJueq1rjaVcdk19SpY7is2aomjwsCHfIw==","signatures":[{"sig":"MEQCIBTR8fOTVByf6BV4D3nxsgAOfXojVq/+bLj0GCd10R9HAiA0NE2qPyKDkELaK/3KpTEn97qBxKb1YzIksBo3Yzdwdg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11167},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"a0f16145da8646e3425b149b544bcb04abc06398","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">4 || 4.0.0-beta.1 - 4.0.0-beta.x"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.274-a0f16145.288_1634680566444_0.022800161954256604","host":"s3://npm-registry-packages"}},"0.0.2-pr.274-8c5c0fd1.289":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-pr.274-8c5c0fd1.289","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-pr.274-8c5c0fd1.289","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"6900081be6bc6e25caa4f1e879247b35f4c96b51","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-pr.274-8c5c0fd1.289.tgz","fileCount":5,"integrity":"sha512-33tFKlTK6u8do2FXW/vdahq4qTYXGGQiRk4WWo30CiEJJWo4aDwKmm5LvL97IMvVa5VrjStH9qWlQEgCnt/CnQ==","signatures":[{"sig":"MEUCIEKOpiWR9ADtDDLQabG2OFo/BgnT1aOcYPd4IWYS/OaUAiEA+bjGT2+Gdj/OVc4ZIHL8XbQ/1FDLm/O7NMOz82FtyrM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11167},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"8c5c0fd1ab8920b38b9edb91dd376522ee951c71","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">4 || 4.0.0-beta.1 - 4.0.0-beta.x"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-pr.274-8c5c0fd1.289_1634680691424_0.9039191038230823","host":"s3://npm-registry-packages"}},"0.0.2-next.285":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-next.285","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-next.285","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"67f123404f9dc794f4d8f8d66211eeae7de8274d","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-next.285.tgz","fileCount":5,"integrity":"sha512-pcPezsPwoRCBpTVhackQJUTqGsCtWZUcdL+KWkHKxbb7LVudEwNiHbJG1iyWrUGxNABMv9xVKDEf3PDsZyF30Q==","signatures":[{"sig":"MEUCIQC3aqJUfnQgYzk7nU9BXfqHMc06pdlEKzzAzC2HTX3D2wIgebH7uUx9N7ddNfoovCOHmCr6Jx2aa1H2FwGke4q7+yo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11156},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>mongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the mongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\nYou can find the mongoDB schema in the docs at [next-auth.js.org/adapters/mongodb](https://next-auth.js.org/adapters/mongodb).\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default async function auth(req, res) {\n  return await NextAuth(req, res, {\n    adapter: MongoDBAdapter({\n      db: (await clientPromise).db(\"your-database\")\n    }),\n    // https://next-auth.js.org/configuration/providers\n    providers: [],\n    ...\n  })\n}\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"671609e55b98646c83b1270f9674b464f2e5b70f","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.11.1+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">4 || 4.0.0-beta.1 - 4.0.0-beta.x"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-next.285_1634719653284_0.2912627062565736","host":"s3://npm-registry-packages"}},"0.0.2-next.298":{"name":"@next-auth/mongodb-adapter","version":"0.0.2-next.298","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@0.0.2-next.298","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"ae90548dc0a6767106768c6dfc975ac8ab9d65fd","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-0.0.2-next.298.tgz","fileCount":5,"integrity":"sha512-CsfgTeMaoTwBX1jQK5GDlINzpXWR3CuH99X1boN3i6SjLODmGG9ZFt7g8XX3ga3WsVhzMAHYCoieG2Q9azCY/A==","signatures":[{"sig":"MEQCIHW5MFc8MJlJWF2MmYlvAIS4Q+M+H2/BrTcYVWI0VsiUAiBUZgHncgDEAg1fHVbngsMGgXHK9sElHB4nnvY16cMKOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoL/0CRA9TVsSAnZWagAAJrQQAICkUUZ5OlCkelHHktsL\nlxuA/kibFsOMffa60GKrDYgktjtGS0jKOmCvNEizrVEV+biJbEwLPk7qxggJ\n3D8+1xFedfNcJO9nzlQsWPfzygeGal2cgqFIjapLA89Ozjgrb4cJ2bqV8uqs\nkmEBsUmqv3fU0qqaKJYE0WM4H7wzINjNEQHItXPjwueg1/FH2KaBWDMdrMib\nyhbLJgh7jIXSvM14blW7AVcIzrf9aPexQGBMHjE3KvpI/1TinoxMYjwpUepQ\nESjuqpV5+KbyTVG1OZe7WI34K4z4JuJ4c8aqEBbwQk7KsMRSydFBiCAMday7\nCxyLSQ0qn0iAsjoJTkTXaL4ajMmVD3mpUdB572mrNBD7+Bc7G3pjDjXm9IGf\nqu0/Nicmul3K+LsKSiVcidVTb5jUNNR7mHWeKMBBu1Y6mqQJWPbPtHQAA5La\nmPvZSd1zbLlZ1DP18G4FVlhzJgUg15RmD4FAcu+MtV06+BaHbMuYi2NwmYBT\n2c09YonNRCEsoBPzJO9pRW7HuizIgjirosnL/FFHChqypum8ifATVoSgXpcg\noEx3RcELXP11kdCNKQfLMu/Y1H7iBOqW9zDf4tO7J0unjhlwzLLvq+BY1MtS\nHwv5QFfjisf/tzu1U8pfp6Yqy5Wptfhhve/VRzCwVzNRLk/R6tFjqEEAgTzI\nxiBQ\r\n=PqW8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","readme":"<p align=\"center\">\n   <br/>\n   <a href=\"https://next-auth.js.org\" target=\"_blank\"><img height=\"64px\" src=\"https://next-auth.js.org/img/logo/logo-sm.png\" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<img height=\"64px\" src=\"./logo.svg\" />\n   <h3 align=\"center\"><b>MongoDB Adapter</b> - NextAuth.js</h3>\n   <p align=\"center\">\n   Open Source. Full Stack. Own Your Data.\n   </p>\n   <p align=\"center\" style=\"align: center;\">\n      <img src=\"https://github.com/nextauthjs/adapters/actions/workflows/release.yml/badge.svg\" alt=\"CI Test\" />\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/bundlephobia/minzip/@next-auth/mongodb-adapter\" alt=\"Bundle Size\"/></a>\n      <a href=\"https://www.npmjs.com/package/@next-auth/mongodb-adapter\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter\" alt=\"@next-auth/mongodb-adapter Version\" /></a>\n   </p>\n</p>\n\n## Overview\n\nThis is the MongoDB Adapter for [`next-auth`](https://next-auth.js.org). This package can only be used in conjunction with the primary `next-auth` package. It is not a standalone package.\n\n## Getting Started\n\n1. Install `mongodb`, `next-auth@beta` and `@next-auth/mongodb-adapter@next`\n\n```js\nnpm install mongodb next-auth@beta @next-auth/mongodb-adapter@next\n```\n\n2. Add `lib/mongodb.js`\n\n```js\n// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb\nimport { MongoClient } from \"mongodb\"\n\nconst uri = process.env.MONGODB_URI\nconst options = {\n  useUnifiedTopology: true,\n  useNewUrlParser: true,\n}\n\nlet client\nlet clientPromise\n\nif (!process.env.MONGODB_URI) {\n  throw new Error(\"Please add your Mongo URI to .env.local\")\n}\n\nif (process.env.NODE_ENV === \"development\") {\n  // In development mode, use a global variable so that the value\n  // is preserved across module reloads caused by HMR (Hot Module Replacement).\n  if (!global._mongoClientPromise) {\n    client = new MongoClient(uri, options)\n    global._mongoClientPromise = client.connect()\n  }\n  clientPromise = global._mongoClientPromise\n} else {\n  // In production mode, it's best to not use a global variable.\n  client = new MongoClient(uri, options)\n  clientPromise = client.connect()\n}\n\n// Export a module-scoped MongoClient promise. By doing this in a\n// separate module, the client can be shared across functions.\nexport default clientPromise\n```\n\n3. Add this adapter to your `pages/api/[...nextauth].js` next-auth configuration object.\n\n```js\nimport NextAuth from \"next-auth\"\nimport { MongoDBAdapter } from \"@next-auth/mongodb-adapter\"\nimport clientPromise from \"lib/mongodb\"\n\n// For more information on each option (and a full list of options) go to\n// https://next-auth.js.org/configuration/options\nexport default NextAuth({\n  adapter: MongoDBAdapter(clientPromise),\n  ...\n})\n```\n\n## Contributing\n\nWe're open to all community contributions! If you'd like to contribute in any way, please read our [Contributing Guide](https://github.com/nextauthjs/adapters/blob/main/CONTRIBUTING.md).\n\n## License\n\nISC\n","gitHead":"f84c0486775af8d36f3756e11fbf2f443f398ad0","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":">4 || 4.0.0-beta.1 - 4.0.0-beta.x"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_0.0.2-next.298_1637924852353_0.24889912270628156","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@next-auth/mongodb-adapter","version":"1.0.0","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.0.0","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"e4cf457667dc1bb7d5461b7fe28df52e5530497f","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.0.0.tgz","fileCount":4,"integrity":"sha512-cbsJ4U29KtPLPM5DBsjU/ITUEgSUECL5p5ErLr7EmIPKdPrs+wAq5Zvt6mbd5vzHRPs8vsRSiFfajiFFlLFi0w==","signatures":[{"sig":"MEUCIQDRzjQLBXzWtqaJvz1tG92Vx0PuULqsxoC51AiQlHyCGgIgOtgORwSmZ+fQz819oVpGDVV6nsBWIsbsZT4Zkiwp5T8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10368,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp6SeCRA9TVsSAnZWagAAvyQP/AtOwkNTwION5maeC+34\naMAx/7kOQ/GMbnGfHG1MbPP9Ci+Aeu0gmIKjzADjfn4OTmZN24XjcHogPjzt\n6uRYF0zWzpxEbELKlmC++Or+fgCKafPM9CUhdewaMEI7mxYqgQ7MImzTDqMM\npIqQtsBhXMtoXTUTwW8gCJfufrt1dPcCaVgw6N5a7y0LOIAdy6RPW6pFeQ2U\niYxbpvDamdRarVFok8ISn62kPmEZbJW4YFbXhIPDKFslGxeSsZqhz/H4ImAO\nTDowYq8jp9kwjGGp9SUihug2ELTnqPvbAAcnYsT4IrDKfoD3KRlmTgsGh0+2\nCf5otzcJtPYRDSWZGharRzPaKERGZ+N1minJ7m2U0F6euHQIJx+W6AiCbO34\nVb7iopz5/KT8u083c5FXloU+6p2arbaxNhHWuc7Z8RQ1IVd5Y4j6pRnauXfx\nkbDKkzMw+MXiuAd4EcLA7TC+jvWcTp7/A2D5zSZbuEIU/v2Y9ykV+6NcvmVE\nYjeUr0qH8vkC1VhZvKxXfnw9zMh620d8BMf+wPXN5Y5nW7vxwIogJXVhNZg8\nC8kFXM/jB2x0LhU13Ocfw7+2B77FfaqMcdyVbjAvsXZo89RoZgDyrIxm9a93\n1dbXLspWO8Fi34wReYC7K4ghc+EXL+iqIugJZGBmAQIU/dqUXO/Y4U/CBNNe\n5DfS\r\n=gRHq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"50bae0dbb5c85ac88b4c4ce4fb1dc20aef793876","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"8.1.0","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.0.0_1638376606447_0.9677513459193601","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@next-auth/mongodb-adapter","version":"1.0.1","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.0.1","maintainers":[{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"williamluke4","email":"william@atto-byte.com"},{"name":"nextauth","email":"nextauth@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"604225bea6e7a1071e16be9e969da6f2a8e9fa8a","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.0.1.tgz","fileCount":5,"integrity":"sha512-lelT++VsktPQ3wdwRVTZuCR5M6upJge0nhiI/I/xYd45ekFaFp1reumZ0JywlxkR59dTRXDQLYEzU/JlMIcR5A==","signatures":[{"sig":"MEUCIQD9JIVR3t49PQt9O47n1oo9f9blrC2U/77rKCdAL+tFjwIgVg5xPCMLkEaRDDplDzUsoCzSxUDN7/3i1z5+JxpJXGw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrjhBCRA9TVsSAnZWagAAkrAQAKORPqtSuBly4t0vsh2u\n9nVt6K/P1uLz4/+n8M3zM1oS05QdrcBkOy5ia77oUrR6g8X3jOQg9kCt02C/\nmorn/rTbUCjoerlDdtGM6HEyGsV9N7OTtH35IOHDNCywjH9D0UY+HNKctCrv\nYtyX4/4gQAH2bU8b08ClnERr9BLPuStv0YRjoBEpKNcbv5KPGAazSjZo3YTl\ntEATe6lV1Ez/apuARRmL8x7N2o5SCRCl3fBR+H9HoRydXHLV2VqgrDLnbajl\nj3wY/1aKTAma0wbNZwo0H+3CqJV4vVfy5A767R+uNBUKtK0mvKpA9meVIE2u\nICEC0ejugui013o3LFIrSt0jIgkvbx6QsqpTPL3sJkEzH94WGCHVciC5NIUy\nsHRzaT5FDMskW8W/cqjeCrcMCQH0zX762B6DRvFYDNSfer+ZMxJxM/aqXGUS\nSCvfC1v7SqLew+yyUTEAcMNDgOVh3bVF3U/O6OgUJnVP5YL2rzGujCf3LJDe\nYgkAn0/2vDq2GWYmDecEZbGiFqKNgvhIqS1/t/hozy9SWDu9cxW/txJI36+B\nbtoGQ9Dp8/zFdnlHH+O18z39Xnswe8MSP1FkGEtv0dqPuhEHeBqJmd8a4uQP\nYk4G7jVKwfE0/QO5KSIdeDgsln5UR1tAHnsRhwaFuyOmmojQRT5L+M6zrP8g\nawsl\r\n=gntc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"87c9490f7c8c72ad0ca64718cb480c6720044edb","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc"},"_npmUser":{"name":"nextauth","email":"nextauth@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.0+x64 (linux)","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^4.1.1"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.0.1_1638807617414_0.7743928065522427","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@next-auth/mongodb-adapter","version":"1.0.2","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.0.2","maintainers":[{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"ae0c0e5bf4540dc8689ee6388b32f7340dbdbd04","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.0.2.tgz","fileCount":4,"integrity":"sha512-uL4wbHCvb8w9e+2Ri6sPUFevpjAWYpB7rl8CGgbLAEyXo6EVpwsYXRsff8k+ku+38qq2PR6Qhb/XBfdfz+Y83w==","signatures":[{"sig":"MEQCIDPmEoEpQhU14aOj7BYxJTOeKTv1BfFesUNnBJV07C+ZAiAigXg53b+JKuVsmzbw62Qnh0w4M/TuMMwYCEXC1beE/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMQ3UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokNw/+JpSm4hhRVQYi8zfuHiGsCLDMkTWM+zVvn8bH5XoyUS8LcSKh\r\nDYntIp6QhZGLLTm5ACu6kv3yWi+2zuuRBfO8lzyEcE2YtJX1HzXtAW0HGWZA\r\n2SHfyrBO+7hpqjCnl8XoQKSv7mgb2ouQD1J51isyAWYiE3+1WLkTI7I6zYXR\r\nTGFBzbKtXumxcWzGglTVSzk+fvaNh3aOWA4r6rds0mPNKQTgTLm2PsEaKQx/\r\n/yfCooo/ma82FZRjf5dcI+Zc26d6oULhq1dc+1Gp56ZnZvRT3QAdi9nw4vHl\r\nQFGYoUJQ1+2hBSHwNk0pcYOEUPprC07ebNkNZXYUjGPGWLD+OHisu5HdsEr8\r\nARx2IAoXdbwgWaXH/jW0r8h+WyNSjjXKehgrUuzO4bZx8bt2b/4XeZtNsHu9\r\nxJ6hTxnofBqVsf9LdKF3FUS446wluN36kj7oPW0r6zWg0eWvbQ0PIfPN2hcT\r\nvXSDPUYpSz9Y4AUhfx/4oZqNzJiZ//1P5YxnfVjhi+WeRhfc8p3VFjfufiel\r\nYD/aXiyoeUrxAlguRUG9YgtHIoiyASRH+tzdaIC0KUJ7H3FXhhvXAT8uxFQh\r\nszgcuxsAgqliak31mFPfimJ3MQqyO1JUgoPF/64Tq7/1KGOAb50NrtzPf61w\r\nD6TiYn6EYtmIyUN6zoRUVUZED5AQKxJ90gc=\r\n=yyzv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"adapter-test/jest"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"c9e74f435cc885727b24264bf51e0259854663ff","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"8.3.1","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^4.4.0"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.0.2_1647381972262_0.09074177094599412","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@next-auth/mongodb-adapter","version":"1.0.3","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.0.3","maintainers":[{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"9ba4daaf9d789bc1eda29bad2ec6aef3330d1bd9","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.0.3.tgz","fileCount":4,"integrity":"sha512-oO8OYjMhYx8s5qsdWWD+yNCqszCO7ewg6UkDhvfY0KhJRbcoOAwOgYYH5Bo4ZGJDqmIw8g6JeGipP7+xLa2Ynw==","signatures":[{"sig":"MEQCID+Nq+/ZC0oxToQnmJFNmmtUipmMibW2kxTs30L3NwSFAiAmktDsi2RUsoCOG21v2FQLp1t8npq/lva1gUmQPsaFzQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10666,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM3qzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhWw//dHLHcFiNQOuBv3BpIsFhmy1OSZxLKTtNTRG1B/zMTAfzgRzD\r\n3vQ6EQ8DqGndTz30G7xORvno1JLWPowWDOIjqABAKyrxI6iLDW5+v0YVDIkZ\r\nLauT6Q1hHuLHin1z28jzViHN/P8M6Rbtx1pkpwwkMV20+ocd8h3cj2Q/uohW\r\nnkz00NdOrB1j3kyQJwkn9OO42I8Qc0WoZIS5jrQttIO5g3xg0RD5v/juq+Oy\r\nqHN8LUkarSAzWdVkl3aJU15T5p+prpOhLbCEmzDYBnqnFuKWRLvb/Bmv2+mY\r\nzCBotMd59zO66hjdScwv5ZstBLbAejxjxVn9LUCkDqcbAGSRWOIdkV+IOsiX\r\nM6rYae5iwXYnilgTDHzCTrZdy7I0lXCmAJOaxi5b+283PnJQE78I3zUwjUlq\r\nUQONVHSJKhUMf+D/hudYd0vnz70gfbPyDDotCxFm/t1plVkmrgO+znPTN6mW\r\n0l8quISfIiXRICxluAmOGqbt/FIqu2VeGfnVSn0oD/+9BdfLqzl5KSObi5BY\r\njY0WGBF27LNFNW1ksFITUeIC6CidR/0+3BuZ14xJ2gRNrJzTO4xFIGIT+EQp\r\nPp5wEGE3yJe4/S+7dI1SleItDvtBHo6LRwZj59ISdI/z96D2tuCtBUso5ADw\r\nsvCgRqNeZG3a/1y7/QYxGxqtrbsJUNjCL/k=\r\n=Jsvq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"adapter-test/jest"},"main":"dist/index.js","types":"./dist/index.d.ts","gitHead":"5100784d72d2a67eebc4b9af31018b555901ef4d","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"repository":{"url":"git+https://github.com/nextauthjs/adapters.git","type":"git"},"_npmVersion":"8.3.1","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mongodb":"^4.4.0"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.0.3_1647540915259_0.013261562798727367","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@next-auth/mongodb-adapter","version":"1.0.4","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.0.4","maintainers":[{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"bf1f2cc59aafb0b51bf848af488884223918ef2f","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.0.4.tgz","fileCount":5,"integrity":"sha512-vRSPo2o9Ok+S5JpOvtgVtMExPFgrg2ybz1zVs0YJwUZ+GIPHKRGYxa1NsJRmWjZ1DesrUDkvoInzGAmE1dWx6Q==","signatures":[{"sig":"MEUCIQCL/IEFFcXSz0ks/oTj+4all5xB0ufJ0DA93MKHfehRYQIgZILe6x76o/2X5TvW8M7LXWe0f23ytdNhewWbuOOhtq0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2WJgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0fw//eyLMiArt/eZL1IEyl1bxrJMN1NdFWlE/ltVFpV9C8XAbH7tM\r\nem8j6lD4ev4VzLPkaePmvpv2hhjz9hHAHiCtgPL7AfNktx202wsw7Ov5oELC\r\n++Z6FQlAhjjis42utPxP6YgJD9+kR6YgILhJqaNjHTLsfw+BiYqijxKGJLYU\r\nCmkY8kGM8XRYkL+RNaudFRDT4CHhv+WZ9i/OAoF/YtLuT9zwhf6lNXE91ce/\r\nR042gpV5O1pLq3eTep0hOJ6D9IBey6sUK6CT0eQwsv4YME2U6imF03mMWGiM\r\n9EaL8w9xuyOWLHfenA3C43Rm0iR28zxD+ER3z6+bI+E2Bgd1v7GGF3blr1kB\r\nrH0Y25KI4+11WwSeCZwq007zGFW3rgd8F+Rvy7UXZtFyk5XP57YMakUPqNdM\r\nJvaVrLl6KHWlZj+83IzU02/Au68wWxtos+6nwfttbRsw8L0GI0l/OKr8EtBe\r\nmqD/cMOxA3HRiSvgZa+tNHKGleCGoGyPydrGPlKO/G4rlrt/Kb3kb8EH+Msv\r\nHbQFc7huVrYKvXblATW0vWrk7LRdozvpyTcE8AcbxM1Ctyd6WpXrasXyEZAa\r\nhMzrjnV+JEyeEGVMZV+beuTCGr9iiWamKEDCc5F9A1x6cF802RtM4hTm9Yjs\r\nHmbtDuuW0lWajiwh2Q26GpFB1nsu3LP5NXM=\r\n=He0w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@next-auth/adapter-test/jest"},"main":"dist/index.js","_from":"file:next-auth-mongodb-adapter-1.0.4.tgz","types":"./dist/index.d.ts","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"_resolved":"/tmp/8c5f33741287b3adf637e67fe5820f93/next-auth-mongodb-adapter-1.0.4.tgz","_integrity":"sha512-vRSPo2o9Ok+S5JpOvtgVtMExPFgrg2ybz1zVs0YJwUZ+GIPHKRGYxa1NsJRmWjZ1DesrUDkvoInzGAmE1dWx6Q==","repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"_npmVersion":"8.11.0","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.3","mongodb":"^4.4.0","next-auth":"4.10.2","@next-auth/tsconfig":"^0.0.0","@next-auth/adapter-test":"^0.0.0"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.0.4_1658413664119_0.49582766621931085","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@next-auth/mongodb-adapter","version":"1.1.0","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.1.0","maintainers":[{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"7a7ce55c04d078ceef705a2ed7771d4e2d424438","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.1.0.tgz","fileCount":5,"integrity":"sha512-jB63vZYwgyVQFNGXwNaxZODVAsdZZCuCvN+uY8mp0lXLIstd/4/GbevWK4eHlUvoteOOKlYJxW46FbRuuh+WBw==","signatures":[{"sig":"MEQCIFly4JJmS5lgw06b7KVTVfJRXyzRgoXrRAZzoj1TcDVGAiAXzqSPhBmS8RlttUbXSyDDwn+bJLj0YRR/So9CLTA4iw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMATFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTpg/+L+LwcMsYSu1pehIdI4gMZjP3l1x4iLaDSWcSwBs12Zau5fOz\r\nhOMBeuf4fzFwlotsE9bLZpkyeYHGi0+Oy+tppd53EU+FoUT12ewKXFxdDolb\r\nWfq+Xt9Kj+Mpb11aY+9ZdXuL0H2Hh/iLNihd+qEJOQNrQlkPvjCj8VrrVwmR\r\nmB9NBETM0ENZDdx1QriLP4S3bArD6C+7dV4dCNTh5QgpQRWvE0SRtiC9vfow\r\npihJhMmKKvQyuc0EvU11BP6fw5I9zWZUWRb2yEPbnBGidpwieAfAKYKfFBT+\r\n1LvKAJroC2//7WgfX3mokmew0BAs2ZXqQoB5EvM5IVwlKsnzDDbHVM4JuJsa\r\n77VVvooOVq8p73f+yMzDdeITFPb9csK4oblnROA86OY0eUDLFx0qv5d04Kyj\r\nE3Lb+9fog8Ktefrtnw1R1GmbmTQ+T3QbpDowCWwWYiEFKTHmRGWemaADz8Lf\r\nb6K9ELW9wQMUm6p28gDXcZoo4XHbMgiP40oVNrIcZZYndbIsgZi5TV8zze2P\r\n8F/S3guedSg4+OYI3Odou8AYLgNj+RIGkyDzzqGPxzfFdYRQBYOpnkqMvwGD\r\nIIhB6SzTHIlIyYa0jTmyXWJKaSX0JfZ3MICibwQA/IiqWP/20coEM+Zx5Nrq\r\nKb5W1ukLEdoRffvQA7qg7VxH731XbPsnTIY=\r\n=Tweh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@next-auth/adapter-test/jest"},"main":"dist/index.js","_from":"file:next-auth-mongodb-adapter-1.1.0.tgz","types":"./dist/index.d.ts","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"_resolved":"/tmp/b6a688d1d2d7d97d51b6083e3f46041a/next-auth-mongodb-adapter-1.1.0.tgz","_integrity":"sha512-jB63vZYwgyVQFNGXwNaxZODVAsdZZCuCvN+uY8mp0lXLIstd/4/GbevWK4eHlUvoteOOKlYJxW46FbRuuh+WBw==","repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"_npmVersion":"8.15.0","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.17.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.3","mongodb":"^4.4.0","next-auth":"4.11.0","@next-auth/tsconfig":"0.0.0","@next-auth/adapter-test":"0.0.0"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.1.0_1664091332998_0.30304919790400286","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@next-auth/mongodb-adapter","version":"1.1.1","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.1.1","maintainers":[{"name":"thvu","email":"hi@thvu.dev"},{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://next-auth.js.org","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"255581e66988956bafea555497e92690ad6086fe","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.1.1.tgz","fileCount":5,"integrity":"sha512-X5O4U4l2M8nyp/B3qF5GOr/JJw2ShKgWfTZRa80Y5CUzTPPmf09ggL5v5UwCmz9l2RIv2GUxO8hK4qrcaZvDRw==","signatures":[{"sig":"MEUCIDB2KYX3/RFMool4HM+k5rapjIBRMeZ/tCizz6Wr9y5cAiEAy0DcwGyl2YQHZRiLzJRuiJXsn8rXt/AqNaB1/TiqArk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQux2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo17A/9GGg20GLX/Cn5aoQ0anWMo29ldHB0HJaJSJfP57PmqfDHvRn6\r\nJChyLPjkYzezxBtb3wTYIX9zqljJjJscNBEnfYGEZRqHrofbNnCxrms6JX5D\r\nCoxKTSOF8sPYSLSr/APActw3DyoHfHTgY0WEaDYRL3FlMn+Kz1bgcD0TtGR0\r\noT0pWrIJNb/7FB7MXz6vHoqrxkGsNtSJ6QMvXoWIER8HXhW2mukoaxj3GzM/\r\nQNPqHzAsAQQkVnh/pwY5j+XIIpfqak7b9w6s0PFiF+jQmp81r2yRrGRZXlz4\r\npM15mxLlEKSq2shd4Pfe2+bZLNvRpGG65z+lh8yuT++Bk/V4a24fWfCEoFuo\r\nc2S9gpx4NYwywIDCay2Qtsm7gCguXmVB+xoRIVDnNx6bu7ID/0BnvCNvfo6u\r\nO1cOqqfJOTHJxY6kfH8hCu/WYGS0WboqEuevar88JxOVtiXa1FLmEGNwz620\r\nSNZjgujeqo6JAbH3xJJO13//f82Id5YTq/gDUYgVdVO0ZD26/nBoAfGEKbGz\r\nHxUosZSR1Tzo1yA82rD7YyNX4I1LoZRz75Y3FwU7YAucw8s4bIxeBMzQkmBM\r\nrUQkuUQNsjXfWCmnAaASPvdSZap0Moh+CsxVCGUDiDTR2ItIOt4bUhGO07xG\r\nVRRehdS7o3loCm+gLGbm7w2rIuY0Rnb/A2o=\r\n=0kbY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@next-auth/adapter-test/jest"},"main":"dist/index.js","_from":"file:next-auth-mongodb-adapter-1.1.1.tgz","types":"./dist/index.d.ts","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"_resolved":"/tmp/5f37403270cda4fdf60a8f1f623979e5/next-auth-mongodb-adapter-1.1.1.tgz","_integrity":"sha512-X5O4U4l2M8nyp/B3qF5GOr/JJw2ShKgWfTZRa80Y5CUzTPPmf09ggL5v5UwCmz9l2RIv2GUxO8hK4qrcaZvDRw==","repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"_npmVersion":"8.15.0","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"16.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.3","mongodb":"^4.4.0","next-auth":"4.12.3","@next-auth/tsconfig":"0.0.0","@next-auth/adapter-test":"0.0.0"},"peerDependencies":{"mongodb":"^4.1.1","next-auth":"^4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.1.1_1665330294514_0.9128938618648483","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@next-auth/mongodb-adapter","version":"1.1.2","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.1.2","maintainers":[{"name":"thvu","email":"hi@thvu.dev"},{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://authjs.dev","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"1517d82d9c685fba10d52c9289163f234214c333","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.1.2.tgz","fileCount":5,"integrity":"sha512-4Z4uvlVKzwhhz5Kk/eVK9BtsU2RYpEOKjzshjg5bDuTlZ0bvvSkTg1edVsUiMpP2wzBrYMCc+pwXYa62uTyYYw==","signatures":[{"sig":"MEQCIHPPViiqDgTgvPklxDSiHREhmD5z25CgVmU/fb5YiqNSAiA+d54Zr9Wk43IrwUgVpGvUYSrZVetldL0FHwwNo8Cuwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPtcZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSXhAAjL6Y03jDsnnjRvQ4C939gdmmcG1aodXJD0OCCR4gLX4lHBrQ\r\nX2DuDlArHbjJ0iAdU9jmdxukoBwnLi7yPtXhcoTa1v4F2kRFez+lLhQZQiKt\r\n98dS20ENw1CJlFNVaBpv3vjYINGhOXqxJxx/l513HShPyONvGN/EsYAqdFfB\r\nohvTwHgqnFcSYab0O+VbWeFuikGUo4vPtlnLk8a+0NpeCIBcDs1I5/0RAzdT\r\nakbZHX9zWIuC8r8Wjp/7hZbaDBxt0lZOCpkPIPxKiRe6GazO4FKfy1o1mXrZ\r\nGZpwWeIdjUG373OjP8RqnkArphiaxHjrcFuyAwEhacLF3tx4DmAfMQamfop6\r\n59hWTsf6mr/rxrvar4eozYU2tvUrrY328sc6JldHMX2ZnxTrFSxOiSS4CqJu\r\nleJAwI7VQOrl3lfvy08qKp/BVh3l+v0DaGh0c7L4GQDkxrty02TBCbM3f9IP\r\nl6RYsWoLwFUk7SBkTMumQWzhn9wecG+JqmflZBsmpCjcBIhnR5TKHRgD4Nux\r\nR0fVtfpCGDFpAg79ToO1z52o6rmopQOaNEfPtlMfeTzRLmCID2cCAZEDP2e6\r\n+1qqFh6sRfl12RkEQPto9UMwUuvZRj2P7ONOHdqQiAMxjvmM+cE+wNC9jqyY\r\nbPcGo+IwZY0N+4QiBfw9l35MZ1C9NgH7qoU=\r\n=6Q/U\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@next-auth/adapter-test/jest"},"main":"dist/index.js","_from":"file:next-auth-mongodb-adapter-1.1.2.tgz","types":"./dist/index.d.ts","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"_resolved":"/tmp/cd1c6a49aff42e61f7e1f1bda8b78cbe/next-auth-mongodb-adapter-1.1.2.tgz","_integrity":"sha512-4Z4uvlVKzwhhz5Kk/eVK9BtsU2RYpEOKjzshjg5bDuTlZ0bvvSkTg1edVsUiMpP2wzBrYMCc+pwXYa62uTyYYw==","repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"_npmVersion":"9.5.0","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"18.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.3","mongodb":"^5.1.0","next-auth":"4.22.0","@next-auth/tsconfig":"0.0.0","@next-auth/adapter-test":"0.0.0"},"peerDependencies":{"mongodb":"^5 | ^4","next-auth":"^4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.1.2_1681839896862_0.9329783822770041","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@next-auth/mongodb-adapter","version":"1.1.3","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","_id":"@next-auth/mongodb-adapter@1.1.3","maintainers":[{"name":"thvu","email":"hi@thvu.dev"},{"name":"ndom91","email":"yo@ndo.dev"},{"name":"balazsorban","email":"info@balazsorban.com"},{"name":"iaincollins","email":"me@iaincollins.com"}],"homepage":"https://authjs.dev","bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"dist":{"shasum":"531b75f828338ebd73d8539685641a17804d1d77","tarball":"https://registry.npmjs.org/@next-auth/mongodb-adapter/-/mongodb-adapter-1.1.3.tgz","fileCount":5,"integrity":"sha512-nH/may8hntYBlcuxepSsR2b95w6SRnP+c/FFt3KKjdTScNjhrN0zZdlT90nisjG/3gK+MvzMbz/F4Rwpgr9RMA==","signatures":[{"sig":"MEUCIQC1A08ZpMWlu/HIDbCqwGbuvVJpxQUMSHiE0skRJ4aY5wIgJeae7I1i7Vds8ZrLCTNV6/V+cnnspnzbRa0UnYqxdX4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQPrEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8xxAAjELymOHmqCjJcc6O0l81761NHqky5vdtsj9FvSQWz2+8eLR5\r\nCqWLS7z0be20qrTnJAKB1nojsKQJ1o/LYjc4aMwmqO2pvadyFr6GjNHBRy2G\r\n9lYPNcJONofCJ5Y17P5cLwQtYKtmhID4wxqZ3uugkCe7Ws8nY0ieTDirK6+U\r\nTWw9HFn+1lkK+7uThoW0ETUOtR/yTt1huVi36ptEWgO0C8x21ewCkBYKv3KW\r\nCvEGN+KRjthUGGE33eZBHSXIMnOV8ph0IXYLwL+tL7jBl6kvlWeh1vYGZb6f\r\nVqmuQiPg/1F/Ip0LpWsRCoQe+JZ+Ae0R8eAne0h2Z3/rn//NVgvWoZ6ufSye\r\nd4Fj9PJYFCjDw8ZYv6FIPIZxGFZcbi333s4gcKCBPGzlKBzksI7vzwgPmPhR\r\nMpbNLUZ3FqI+6xl4b6WB38n7wNFnZ2DJLYHN5mBGvvTUmPBAhZ2DvZmX2Y0k\r\nASES1lXU8RvbGotG68qgVJR/m/rA5P0l0ewaLee48KKkj9YfeUFkOBC1/YN4\r\nihyx/k2s1vSwuD6ZgHP9hvQ+vWXXwKjBhgqJpMiG1WC9p4q58Dcfu/Cbtsin\r\nm2bBr5Nbj8VMk973BGxbV9GPvCkGjxncNfbuGUNziuVocKAH2Qf4dw4B2Qbs\r\n/fTd5KbY8IRrYkC/ctaZ/fCON0z01kB6Eyo=\r\n=SUbe\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"@next-auth/adapter-test/jest"},"main":"dist/index.js","_from":"file:next-auth-mongodb-adapter-1.1.3.tgz","types":"./dist/index.d.ts","private":false,"scripts":{"test":"./tests/test.sh","build":"tsc","test:watch":"./tests/test.sh -w"},"_npmUser":{"name":"balazsorban","email":"info@balazsorban.com"},"_resolved":"/tmp/c48d4569c816bf7338047a697d05a67c/next-auth-mongodb-adapter-1.1.3.tgz","_integrity":"sha512-nH/may8hntYBlcuxepSsR2b95w6SRnP+c/FFt3KKjdTScNjhrN0zZdlT90nisjG/3gK+MvzMbz/F4Rwpgr9RMA==","repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"_npmVersion":"9.5.1","description":"mongoDB adapter for next-auth.","directories":{},"_nodeVersion":"18.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.3","mongodb":"^5.1.0","next-auth":"4.22.1","@next-auth/tsconfig":"0.0.0","@next-auth/adapter-test":"0.0.0"},"peerDependencies":{"mongodb":"^5 || ^4","next-auth":"^4"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-adapter_1.1.3_1681980100454_0.4691160568403949","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-08-28T19:22:37.532Z","modified":"2026-04-14T19:04:07.400Z","0.0.2-pr.193-6071c497.276":"2021-08-28T19:22:37.749Z","0.0.2-pr.193-82a849cd.277":"2021-08-28T19:33:55.935Z","0.0.2-pr.193-e833dde8.278":"2021-08-28T20:05:39.286Z","0.0.2-pr.193-b9ed40bc.279":"2021-08-28T20:51:45.973Z","0.0.2-pr.193-038f8cf0.280":"2021-09-02T22:30:07.694Z","0.0.2-pr.193-4f0ef7e6.282":"2021-09-03T08:22:32.157Z","0.0.2-pr.193-1fc34f1e.284":"2021-09-05T11:02:29.883Z","0.0.2-next.276":"2021-09-05T11:04:56.852Z","0.0.2-pr.249-f85d2a06.282":"2021-09-19T23:11:06.338Z","0.0.2-next.281":"2021-09-20T08:30:26.561Z","0.0.2-pr.274-1f84ed05.287":"2021-10-19T21:47:25.210Z","0.0.2-pr.274-a0f16145.288":"2021-10-19T21:56:06.630Z","0.0.2-pr.274-8c5c0fd1.289":"2021-10-19T21:58:11.565Z","0.0.2-next.285":"2021-10-20T08:47:33.441Z","0.0.2-next.298":"2021-11-26T11:07:32.727Z","1.0.0":"2021-12-01T16:36:46.582Z","1.0.1":"2021-12-06T16:20:17.561Z","1.0.2":"2022-03-15T22:06:12.439Z","1.0.3":"2022-03-17T18:15:15.417Z","1.0.4":"2022-07-21T14:27:44.294Z","1.1.0":"2022-09-25T07:35:33.166Z","1.1.1":"2022-10-09T15:44:54.715Z","1.1.2":"2023-04-18T17:44:57.001Z","1.1.3":"2023-04-20T08:41:40.610Z"},"bugs":{"url":"https://github.com/nextauthjs/next-auth/issues"},"author":{"name":"Balázs Orbán","email":"info@balazsorban.com"},"license":"ISC","homepage":"https://authjs.dev","keywords":["next-auth","next.js","oauth","mongodb","adapter"],"repository":{"url":"git+https://github.com/nextauthjs/next-auth.git","type":"git"},"description":"mongoDB adapter for next-auth.","maintainers":[{"email":"gustavo@better-auth.com","name":"better-gustavo"},{"email":"Bekacru@gmail.com","name":"bekacru"}],"readme":"<p align=\"center\">\n  <br/>\n  <a href=\"https://authjs.dev\" target=\"_blank\">\n    <img height=\"64px\" src=\"https://authjs.dev/img/logo/logo-sm.png\" />\n  </a>\n  <a href=\"https://mongodb.com\" target=\"_blank\">\n    <img height=\"64px\" src=\"https://authjs.dev/img/adapters/mongodb.svg\"/>\n  </a>\n  <h3 align=\"center\"><b>MongoDB Adapter</b> - NextAuth.js / Auth.js</a></h3>\n  <p align=\"center\" style=\"align: center;\">\n    <a href=\"https://npm.im/@next-auth/mongodb-adapter\">\n      <img src=\"https://img.shields.io/badge/TypeScript-blue?style=flat-square\" alt=\"TypeScript\" />\n    </a>\n    <a href=\"https://npm.im/@next-auth/mongodb-adapter\">\n      <img alt=\"npm\" src=\"https://img.shields.io/npm/v/@next-auth/mongodb-adapter?color=green&label=@next-auth/mongodb-adapter&style=flat-square\">\n    </a>\n    <a href=\"https://www.npmtrends.com/@next-auth/mongodb-adapter\">\n      <img src=\"https://img.shields.io/npm/dm/@next-auth/mongodb-adapter?label=%20downloads&style=flat-square\" alt=\"Downloads\" />\n    </a>\n    <a href=\"https://github.com/nextauthjs/next-auth/stargazers\">\n      <img src=\"https://img.shields.io/github/stars/nextauthjs/next-auth?style=flat-square\" alt=\"Github Stars\" />\n    </a>\n  </p>\n</p>\n\n---\n\nCheck out the documentation at [authjs.dev](https://authjs.dev/reference/adapter/mongodb).","readmeFilename":"README.md","users":{"flumpus-dev":true}}