{"_id":"@apikee/authenticator-mongostore","_rev":"1-d792752d7aa5a83083469102d7215079","name":"@apikee/authenticator-mongostore","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@apikee/authenticator-mongostore","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-mongostore.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"dependencies":{"@apikee/authenticator-common":"^0.0.6","mongoose":"^6.4.4"},"types":"./dist/index.d.ts","gitHead":"839de1898ce3ad4ea47566a8ed1b1de056789961","description":"**MongoDB Store for @apikee/authenticator**","bugs":{"url":"https://github.com/apikee/authenticator-mongostore/issues"},"homepage":"https://github.com/apikee/authenticator-mongostore#readme","_id":"@apikee/authenticator-mongostore@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-abWV2XPSvwnHupvh7OGCFPxnO+vPxnZyxFzcI9fsKPfK951zXLLy9eVUnW9qq00HLz3Dsf7le6RzcsEepJQzWA==","shasum":"29a4d9e7f7895b890d6c7e43098b78ee1bbbcc86","tarball":"https://registry.npmjs.org/@apikee/authenticator-mongostore/-/authenticator-mongostore-0.0.1.tgz","fileCount":21,"unpackedSize":12233,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDASTVTkZbZMSvoABOrrZWyMmsFXBBIoQWNW6TKbad8rQIgA1VvWxv968B8u1rHSGoICdeXwjfsciA+nmcIA2IiSJ4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1EGuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWHRAAoyKZsknMx5jSOUPmZNjt8yryn01URxVukwoLpH6s/3mKV0AC\r\n6/lXXUD/WRVqaog7oWXSAdCA3VLn4zUS0dUdfyo/pi2fzkvpZYT5xYfWxU75\r\nfCjEiypblj/5Hs2SDgNUGx25NJuJtUQXlXKB9ySRvN6XSALTtU33aP1LPEyh\r\nmWwW+dggYaIVAyAjzhmwySBOPzexhTDPqTvvYAgtI4qE6geKZdKbDBaTdYkk\r\nCtjRmIfPERH3hxuWpnBmz6LQ3JrwkVddBwRpQHqCWBMMUy/IhLhl9GawVs+x\r\nmnc8Kgwx6xjWRPpLv2wnuTY+7Fh50sEDGZdhZ9n8tPtHYiscpUUFgG2JiRGw\r\nMRhomUYpEB1jXk6IqbMaJ0e/5eIFbeuf/oZWJJ5I45B/SRl84xVGIrTbylB8\r\nInxMVJFhy0oBAkOBBVWq6cZ9RYQdNnSPH4DkzyvuHbDPOTgdaupUnLHexUYX\r\nCKl/TSZxhdQ2rOYwORo3wxZO6c/HaOgaXWD4WsPsIYiaY7/O5v/ctoEc/+z5\r\nNWOpDNNyKyno+OSW/hCkvCchGTdFHwhJ8HS2/o4dkX0Ip5li1KVfvKMGIq7B\r\nGrm63gyC+4b1AjuoyE8IOfHMVuaIG+cIy+NnrDFOJD3y1UtWnY9rK7IJWeAM\r\nG/zFjg9NQ/jMGUxy7AbDnlzIgGbx7qgw55A=\r\n=jeRP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-mongostore_0.0.1_1658077613850_0.7756381743693188"},"_hasShrinkwrap":false},"0.0.2":{"name":"@apikee/authenticator-mongostore","description":"MongoDB Store for @apikee/authenticator","version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-mongostore.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"dependencies":{"@apikee/authenticator-common":"^0.0.6","mongoose":"^6.4.4"},"types":"./dist/index.d.ts","gitHead":"014a7376a3058675506eccdf1c3a24be6cf59ead","bugs":{"url":"https://github.com/apikee/authenticator-mongostore/issues"},"homepage":"https://github.com/apikee/authenticator-mongostore#readme","_id":"@apikee/authenticator-mongostore@0.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-1BDgOrTssS0DcNcZC2DhuZ0BJ0QPKyScImnjnuu9D6WVn2VGb/qiFqdCL2UczPfuxQM1OdDatVi/fRHlwMsD2A==","shasum":"ff3689111443152b98366aa4a75bdc87e6c6dc99","tarball":"https://registry.npmjs.org/@apikee/authenticator-mongostore/-/authenticator-mongostore-0.0.2.tgz","fileCount":21,"unpackedSize":12293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqtG/9Dewi0GO77MI8JT+mmozagfi6JVgCqGc/uvJbYgIgRMXLHpPOubUnJE+yWw1E76xu8kUAagnVYxQ7kThq62k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1EIIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQzA//bcFF+vX2EVcw14KPtM1J3+lAikEFctVu3nESFuItGlz4CfwG\r\nH2SDZfA/HFir3g9+sETgTOXVvG/iWEKx7CbHre7ODp96os0M2KIloNQ//u8T\r\ncxDgJ/eiUZuzSM8a0TCj/pFv3VCF55w/BB6j8eW6qOkT2C1T59Qfsl2OHRH3\r\nXdZHdPfYIoQ57FVgGp+JhV6nCwBN+EbMt5m3m0G9HcZGwoTg3uAS9Ey073KZ\r\ndDiIJeQSgIvenl5x1Ao3kqq9yatVyHmVowNUXrYGq9cP58hXOKsxbtf0Cqn5\r\npo9I6kA5Bri8bVkNEPNV64EwwAv5UYPnYb9tGHN8+QJwDuOHl4xeUhrF+Wq1\r\nijP6Xy39P7O9lZKBtoUXUgpC27A+HvF0jIikS2kor2yMHQSgp1tgEfaYSYfk\r\nvmZcDcpgdBimqNHqQQb3KYCFgmWjv5RqssKgjmNqoneiHLRydWUthLeXY0ib\r\ncQ5KfSVraXYAwebitknoem0EerU9KSzgT2ZypwSIDpXR5rqpZlqacHREuEod\r\nZcuuWJ4HIkyMp6+KM2ac7EqTLBI4eqyrDOjCn2Wg/K+QhvoG2gGcsD6E6AZ3\r\nRmULa2zIJbWDap5AHzAFA7FV+Z6oNWM7Xz9W3BzUxpMTsWqh4LLV3dDWHPyu\r\nmDFyYD66V2O9zVRsb3a0pLzWLhjad+uJX/Y=\r\n=LDJs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-mongostore_0.0.2_1658077704346_0.007155169782785853"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-17T17:06:53.794Z","0.0.1":"2022-07-17T17:06:53.989Z","modified":"2022-07-17T17:08:24.686Z","0.0.2":"2022-07-17T17:08:24.572Z"},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"description":"MongoDB Store for @apikee/authenticator","homepage":"https://github.com/apikee/authenticator-mongostore#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-mongostore.git"},"author":{"name":"Jakub Tomáš"},"bugs":{"url":"https://github.com/apikee/authenticator-mongostore/issues"},"readme":"## @apikee/authenticator-mongostore\n\n**MongoDB Store for @apikee/authenticator**\n\nIt uses [mongoose](https://github.com/Automattic/mongoose) under the hood\n\n## Installation\n\n```tsx\nnpm i @apikee/authenticator-mongostore\n```\n\n## Usage\n\n```tsx\nimport { Authenticator } from '@apikee/authenticator';\nimport { MongoStore, ConnectOptions } from '@apikee/authenticator-mongostore';\n\nconst mongooseConnectOptions: ConnectOptions = {};\n\nconst { createAccess, validateAccess, refreshAccess, revokeAccess } = new Authenticator({\n  accessKey: \"verySecretAccessKeyPleaseChangeMeOrUseDotenv\", // Never commit your secrets to public repo\n  refreshKey: \"verySecretRefreshKeyPleaseChangeMeOrUseDotenv\", // Never commit your secrets to public repo\n  store: new MongoStore(\"mongodb://localhost:27017/DB_NAME\", mongooseConnectOptions, () => {\n    console.log(\"DB Connected\")\n  })\n})\n```\n\n","readmeFilename":"README.md"}