{"_id":"@denz93/vendure-plugin-simple-auth","_rev":"7-5d812a9cc0bb0d008991ae36574acf49","name":"@denz93/vendure-plugin-simple-auth","dist-tags":{"latest":"1.3.1","v1.1.2":"1.1.2"},"versions":{"1.1.0":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.1.0","description":"Allow customers login using email and verification code (One time login)","main":"index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template package.json LICENSE README.md dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.1.0","dist":{"shasum":"e53f4199b4b183dd6517d9a789d3aafa2819aebc","integrity":"sha512-a7HB+iLAh5wPf11gWwwf9W6hSjl7Uioi5iLiYyKBGpq04Y14tpTNThJ+W2akMzTILP+L8a/4sAOsiOvtVEKH/w==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.1.0.tgz","fileCount":73,"unpackedSize":363804,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9hwfhruyqMCapMblvRyqlGpqeX6ybofQZos1f/x6FewIgGoMQ5qQFuB32DnQEoJakTR/h9oCY+mDUrZY9H+IXPkU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGXjOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVKBAAguBVyqCnsJSz7MQrwKf/cCZKc1z+TvGatYePRTn0xJa6FYJV\r\nJDYkEiolMlEaztrxG877v+FrellMzkihRknCZVyh053MKN6fgw58+WO9ECnd\r\nvmO44mtlAthG5aJQFmR/b239cChT4D93/KzG3A3u4A5oX9PxdJYCFKo+G/yf\r\nrdMnLUdp3J3AkGQhQhFQ/OXY6LOQtBSBpJIPEvBy+0dDQGhE3zFCBPSXS5in\r\nH7xFejgsGJ7PTenF1f0DvxXOBjIEMcT1R+GFuRY4qZCxKP/PheF3G4x/JX/M\r\n9Orkvhz3WGqQtQzZzOc90L+7Haz//4+jRoBtSflJNtXxlKCc3O91c7TrmoSw\r\n9WPfGY0IqI4rDhUPYfO5jtItSzFoQKgzyTkBCuloaYvnSGudP/687wJdacID\r\nEUYuH3lZvqNlWwc/mTnLLnI8JwHcvH+FCXaLLdM5WFT6T4O/CDfZWZeuhYso\r\nHzyIZ/mt2Mzc3BAfGJXb4cCbeo6o/rEtnmkcCwmafkOVaeWiLBud1b7Pf1pc\r\nVc2Awp+uq89gWagR3SlNbif6DbF24kUzBb1ErDdIVT03M1joqAJAz87iACQc\r\n7pbvrEMDifB0gkThVOJTtKgPZ7NHbztnagnXuPftuVHqvbeh84ibHdGBxhVZ\r\ni7+k/xPGf3Rq2yp3TF9FQgNBIV/eNSMypmQ=\r\n=QY3J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.1.0_1679390926102_0.4373674641314107"},"_hasShrinkwrap":false},"1.1.2":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.1.2","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"readmeFilename":"README.md","readme":"# Simple Auth Plugin for Vendure.io\n[![Test CI](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/codeql.yml)\n\nA Vendure plugin allow users log in using email and verification code\n\n## Use Case\nA lot of times we want visitors (aka customers) to complete their purchase order as quick as possilble. However, they usually hesitate to create a credential to a random online shop at checkout step. So we provide a way to quickly authenticate those visitors by their email and a verification code that is sent to their email.\n\n## What it does\nExpose a GraphQL Query \"`requestOneTimeCode`\" and add an authentication strategy to GraphQL mutation \"`authenticate`\".\n\n---\n\n## How to use\n\n### 1. Install\n\n`yarn add @denz93/vendure-plugin-simple-auth`\n\nor\n\n`npm i --save @denz93/vendure-plugin-simple-auth`\n\n### 2. Add the plugin to ***vendure-config.ts*** file\n\n```typescript\nimport { SimpleAuthPlugin } from \"@denz93/vendure-plugin-simple-auth\";\n...\nexport const config: VendureConfig  = {\n ...\n plugins: [\n   ...\n   SimpleAuthPlugin.init(options) //see Options\n ]\n}\n```\n\n### 3. Options for `SimpleAuthPlugin.init`\n\n* attempts: `number`\n  > Plugin will invalidate the verification code after user's `attempts`.  \n  **default**: 5\n* ttl: `number`\n  > Time to live  \n  How long the verification code is valid for.  \n  **default**: 600 (seconds)\n* length: `number`\n  > How long the verification code should be.  \n  **default**: 6\n* includeAlphabet: `boolean`\n  > Should allow alphabet characters.  \n  **default**: false (aka `digits only`)\n* isDev: `boolean`\n  > If true, the verification will return along with the response of query. `requestOneTimeCode`.  \n  It's for debug and testing.  \n  **default**: false\n\n## Future Updates\n\n- [ ] Prevent cross authenticate (Ex: users use same email for GoogleAuth and SimpleAuth)\n","licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.1.2","dist":{"shasum":"aa8bce691ea397f1a231ff00f685520c908b7f76","integrity":"sha512-CCCXzP5SaWv+UifevM8aW/fH3VfI5MefI+4bHJJoefSM8YPeeK+ssqI6MELDaHR2vWUiwph9i/wMeLnlWEpQtw==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.1.2.tgz","fileCount":39,"unpackedSize":35717,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyu1TZWvBGSDLAm2dhiB2uYOWq8hlSDkHwlaXcPV37aAiAqKH0gdK2jOrfHl12v4lmDrfa0Cdt0rl+BwBbtVShvQA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGo9hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUkw//ZmWGpLoDrOnrXDapbMzKOJMhS/UB/YxQCpq3gCte3CBQB996\r\nG9dJrSqRd2Tf+YeTpSUaFJXp8/Jv1cjPbjWaUjIXudpwrTqR3AwHtpHS4xb3\r\n0/lh2Zt38MsO5392Cx3MtGYnvXGuXhlMKwWY19DZq5G8vrZIG/fK8sVk4dpr\r\nyKngncaeVlYhZYwTrOtJJbz97+FQDwbeZ2MNdmMagltoLLJUEJqnzsjb81n0\r\nPyPqkQHtV5sdW6MhMwwDfozGW7FwCWH9tSlYZxQY4sZU4Wy8Go2QtImoDUP1\r\nP3uaAwjSZSHBd2KNGxRWI4ayINhOr35dxVE/MYma7SV8n0qxRAsszO+U4gv5\r\nT8UyBJ0IQppdtRg7DmUJXBshN6XAch1oGoH6SYDYI0g8VrnChBBbo0f5EhwS\r\nFBi9vRhRNBeAI/ree2fbkrlXZD72jn74ZSTzviv0+dxwymcOMkAPqn0C8t5W\r\ndV8LcrBGbwxrVECnndoahipFVt6UHEMRKJTsLffwXa8OThBXIuP91jYvZUPE\r\nLQjMRzr246cG2JuT7JmiD4desP/PN06gK3b8BW0sKjgtzAViQxIL9OZx6XaU\r\nGnbJaJbNIbT++yJKB5PVOy2P0k592qLsQJy7XqJH6jpqZeM3ZVV45Jd8UxY4\r\ngH7CbfixQT3WuCv+eg1OriEpwH3JekAWPpQ=\r\n=DRob\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.1.2_1679462241070_0.401679947863"},"_hasShrinkwrap":false},"1.1.3":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.1.3","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.1.3","dist":{"shasum":"1da31f1520d283175dbcdfd64deed2b05beb062c","integrity":"sha512-Hoxy2UBkd8Wj2I7rsLQa7i8norhYIEgAAs3/6wCCvij5ukcBMe5fCoHarq/fbBWTpERv+dWsCrRN6Ij+G56IFQ==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.1.3.tgz","fileCount":39,"unpackedSize":35976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfSFxgJ45kew0FkF0ZnBnKXHxO9TkU7TBtZRgGW1F2zwIgU2lTqjq4y7gVvRQ+LTGvw/oT8GB7bheNI0pNFa1RHhc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGpNxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmozpw/+Or5iW0y1wfDBZKB+L1o/2DBBtrsarHDdv9QBUp6SrutOuDKn\r\nW3y2Ua+WPNe88LJo+bQ+D8uHBIezHmGuE+edm/SxtN5yuCOsxqWXM60ShuDN\r\nZ3lEJAld2Q7P4labwi3gQ5HG917F2u/bo2Ibd5FxhpHNsowLMg91wSPK+HX4\r\n3EEySFs9qfE+l5E8gJHichoqSvCLzeDo/B0ULAgD/dfft7Yu51uBy4M+Ofra\r\nkbhZsiYXX9RAW8c7K36GDKOIwOuFpl3We4FPnuoY6bzbbMDLSXAK0xUtgDdW\r\nprUfs/S3F1fxhHB7eRkJiWNyl9KgYhhGv3++sun2rRmw6Sfic02MxpiE/XQX\r\nwIFMThqb249dJr1Vh7dLCFYsGIGSGCrFjAzc7HEFugXaSD1KrLbfUSktGTly\r\nHeunS6D6uCguMPnZBqH2Qac2uOGuutZWOHmG4RB6ekA6tjqQ2TQyz64325qn\r\natWtlj+MOFDNptkuJbHBZYzlc8p7+W67BTZcvPdFATrTcG06/CVmWjHdQhkF\r\nARkOVq3KOqv7r9x3kNYWEESmUslMu7sDSVVfEeXsdhXvsLUs0sgkDOCePXQ4\r\nDRNu9GTNkjVp9/1dPkcKibe0H6tNzRXUhveHwAREGaMFg4JwQHTByBrX6Rib\r\nA+ZZBzJ8PkfqdAVGa3L5s5xzNei1KqbbX78=\r\n=irZr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.1.3_1679463281594_0.4102457941654425"},"_hasShrinkwrap":false},"1.2.0":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.2.0","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage && make-coverage-badge","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","@vitest/coverage-istanbul":"^0.29.7","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","make-coverage-badge":"^1.2.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.2.0","dist":{"shasum":"27df503a093f5059ac653c25ce89d03533962379","integrity":"sha512-1XNDP88Yah9FzHHhGmr8xhfMBHUfkHxcWsBNfyLZbRLXu/8v1clxlGITZfV7xGKVj3bT+3ZkLBQju5o0UqW0dg==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.2.0.tgz","fileCount":42,"unpackedSize":42495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICXG8YzjjKZOdNa/1g8Rb4LfPJQJ6ABGCLFbqVHlUrEJAiEA4temqtbn8/BlMWdWkX3wdiGGBlfboFPG4wuTGmnfexo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH7FFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQtBAAjTTH8i7SEPluOx+T1CvY3Wg5blmPS0DznqMG/8D0BLY0arcQ\r\nIPxBLeECkINq57iM600Ob+8SL3+nCKkxEmZ5X1W1iGfdsm71R1CpsVqrLDoL\r\nq5a0G6LLWKaE/9haX39jHg0jShnpbhGj9KJB/szL0kmd23d9MC7PGVmyBlmA\r\nbmO9qREmG7pB8QmuWInqvckYAq8brBbgbu8CUXm+FxAGSw7ab4AzAV18NhUU\r\nvdaWVTfzzWTRMUWQBc4wrZN4wZ20Zl7XTx/B9ueT6AR/40KQUFmpP8bQ9P5y\r\nTFAfiiMzJ38ydjRESnRGdPdEG+Ms4zZ88ZoNUGwqbTPWfB8AgpLNH034GGJf\r\nXWjOPYsw1yRzIA0kdniNiutIPQovL30JfJOE0hjcTqqYSJM4H6qDeKiYDNCr\r\ncy3zYMjN+6NUM3VgbMxPJf02c/ArSrRiG7LMhBgNKtlhBnGrQyOtbXqgu0Bj\r\nqvEZivosJ/fArnPKdLWQ9M/cZn2lalaInFHgr8S/RXAg5tpFeN7NzP45F/wq\r\nRCSOpckAT8JmQ1aX3iLAQyO4nfwVzeOqSV1Bu3sfu0knLcLduzuCubj9St9F\r\n/RyRi2lCtRze5oOb3N1MLMqq2i+1ZB9D1f/e8XOy2/h+s+B2ZIN8l5/GJEVT\r\n/T9diNrRuj0H2VTJ1LRJI7PurO50K+s6aN8=\r\n=IN97\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.2.0_1679798597529_0.16273829366576953"},"_hasShrinkwrap":false},"1.2.1":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.2.1","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage && make-coverage-badge","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","@vitest/coverage-istanbul":"^0.29.7","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","make-coverage-badge":"^1.2.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.2.1","dist":{"shasum":"a524bc2eef97fa9cbab1920abf61ac3b4683d2bd","integrity":"sha512-Wabhzor7BLEy9TTzdzgsTkBKDvgfb56nuXlrUks03iWSnJA/kVpSeqhhDQ7IelpVWn5b2eUMThwGDqr1NyFAkQ==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.2.1.tgz","fileCount":42,"unpackedSize":42495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7wbcz8+sVh0O94hoCJEUX/ft9VhtByyeRi2KdmQ/QgAIgaP+MaOZeO/U2RH4KF4wzaVhdq8UtSHMdRCtkOsfDagw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH7Y+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph7w//T9NilCIus9rIHamJF+hnLeS4MW93A9XsJv2WRwdzxM7Q5Np9\r\nuYnP+QLH2Ek3sAcpAmMDU3vIcDnruD4tSMQ8HHuizMTbn2Fj5WPxtE1Ueblx\r\nblk1xf9GVZFgMhKa7Zn4bLDIid87c24HjM1WShdqTo8Y1ToHzmAdpyLcmfWB\r\n1nf5R6NFlSy3tXugMwloIFHnI3n0TlHZ46YQp1yws27M34FzJIPrJPe8C9Hd\r\nKe28e9Ssnflu/lm8s5hU8EgNe8WEENP65oM6SyNCbEoCk75hCB5l4XCLRlYp\r\nOpc4QcbuN0cJTLU9L43SWP+p4GxY3Lq7r+G3sc4yzTSQBeZcJCBzWUcU65Vq\r\nIFHg1XyTqgc22WZwjY6f5nL2W7cf/bM8R5ujlvi9ixU4wZ1Ei6JSxtwxmqmq\r\nD1/W5B0NGiHNDvslgTmhGy54FOdHnPW09dgm579BR0QY00TpokrUevHrjTLG\r\ndxobwRRZf5DhQuTVNHkvOvT4s1+o+HO4myP87Bq5YbyPmUP/hjhesWW1OXAq\r\n9ISq71/D5ToWyopYMiIsgFG5krxe/vmKuVSWmULHoDVEyZb8g8K8/0f38JTb\r\nAWzeohAPcJX3ddtgi6mTRJl74Eg/OVJZxuxGxfDRsffPjMqAuMEHPdM9RE7z\r\nDwfUb17Q90t0y4AJqM3JblwO6CPsAWgKm9E=\r\n=qtNF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.2.1_1679799870786_0.10630460084799687"},"_hasShrinkwrap":false},"1.2.2":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.2.2","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage && make-coverage-badge","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","@vitest/coverage-istanbul":"^0.29.7","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","make-coverage-badge":"^1.2.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.2.2","dist":{"shasum":"0218ab37436808104c09b19225496b9c0a316133","integrity":"sha512-vEFmfcJsxINiAyzZ8EGTp7XSG5xut39d8kUTrZ4KA+BHaAqN2YE6370vjgWzjNfwRX3DUY62AMAbr8CaNdd8Hg==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.2.2.tgz","fileCount":42,"unpackedSize":42495,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3uVMsO9nUbRPj+GzRxOd5ajDIco1VihGa/0PKHqDV8AiEAl8u2vo9R0TNNyKeGtXrpVXAKnglVYHqq5N07HHWc2R4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkH7cMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCcRAAgZpJS9jQOhRqQNKooFqG/YD9Q8ng0BsMfQ/HIfQ3B/h8EtL3\r\n7ylnzhxlBpajrb7mOY4L51NfZ9kXW8ajlER/j313Tr78xEwy0FlOf46IwtK1\r\nERDUN6rASy2DHR2HfKN/nkMBC0yEzbZtu9lI2BfbXUYQZ+M2XzsnJtbce4kL\r\nN+t1+cy7YwRjYJCWqHuh0Qc08f88Xw1G9uBZOjLwQIfVj40Za3bnLmPWIvy8\r\neDtBOBkeUfBqfud721H6cYJlh41aF6llVuP4OL5QIle/N9m+arwt1KXR8JRg\r\nVtDlpxz8U7Ma/ITqs8iSaiY8Y7rFYz1p+1X0L4WV/tdin5Aby6ONAfuaojtM\r\no07uMhTn3nLGFiBHi07vzuZi9CQaLtDxyR7tjGNdhvjWyYeIP7CKDzdf6L0m\r\nzXLCoDvgM2wlRwmOqMbwVpl4jEBiBv9Fzc6mgd31XtFCXqNjUjyRzWFqFAVB\r\n++XtZ9s4u8oLIiqx8uytJict6G5lXWVf56EosfY/p/CaxJJmx87x1XxcDJND\r\nmf9PNIU/iAIxEveffBThH1OJdBarNpan4u4BXmiYAPcb1KamePQRO2FDBstr\r\nPoL+VnYX7fhPHWIj/wH8yPmAvm1e36xZPEaX/TcrhwWaRWPg5oP2iA7Dr+qC\r\nc5GjThFwJkK6x+SC1SSN3MowvReTJOnJzmQ=\r\n=UiID\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.2.2_1679800075781_0.3919317108219629"},"_hasShrinkwrap":false},"1.3.0":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.3.0","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage && make-coverage-badge","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"@vendure/email-plugin":"^1.9.5","cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/testing":"^1.9.3","@vitest/coverage-istanbul":"^0.29.7","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","make-coverage-badge":"^1.2.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.3.0","dist":{"shasum":"dbdeeb13980065181ad2fbb2075b824fd4329cf9","integrity":"sha512-6EBPOe9sBqjhSY1fVJXzsaRfm5EZL1dg14PJHWAELSrR7S8IQolLJGF+dSxF+mQkppgopQHeeKuSj1/Z3hoBTA==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.3.0.tgz","fileCount":42,"unpackedSize":44291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpXaTUX/sHwTMzfrSdNAQ0+CYBNkBY1jToW2JKqFkcOQIhAIM3c0HHV+6VwcyDvMvznH/fLmuMIYYW8r7OfNPgU0jI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKgyGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq49BAAoaJvCuA7C1gIxqk0yZHUnWD1y0wdQYWWInq8sjy+X0yhFj9A\r\nx1zQ51n/12iBXSKruoY2hspyCoLM3vSWe3MO6fOkp4HSu/o9mtJCp+LjLn2O\r\nB6qZRxKparpN2QrSFaHJhwfJqTS2ZqZ1bq33Mp7lcmqI7mNwE5h5ObvUW4Th\r\nHw/q3GyvNe4KUkLnTSyzzZHNRnlOeGKaKfnUG4qt41toLzeTsRhU/uvO8bmH\r\ntLweHkGSogLkPIp9oNf/zJcmWxTvNhBrG/LXLNxbigqB/BPAgL8HcZvEt7TT\r\n6Y5P4mH1DHeGM9jTzHjrH313egBCeCA9GqDuRtKb4ibCjLGHfH0y1LchHYn8\r\nbomYtw+t1ehNt6qo8syilHtOYKUaBaTk22VFiBbzdtZtM1H6YLNRRP3J/XIA\r\n1XLRPKkKBqpy/6X+gYuZrfJIs7aPTXs9cLNR4qVkp1g1FzkXx9oKdxu8w75I\r\nQONmsiLW1tqBZ970uaL4emTSWytkKKKl/UP9r1HX4fuvC2FeqK27XavySSxk\r\nIYX3Qmd9Jf0qiw+GIfP79W8opqu1SpIgJOJw6XBJHucrwN0YOG9RQlsY6pNK\r\nmR0lhP8A9LeaOajVqVjlR9d/cO53Y5x2cxUTGhdHwzNHJNnM64j3IF70KjcA\r\njF9NZjdjlZB78UABaYIQxRtx/g6hIVFP4so=\r\n=4ASV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.3.0_1680477318467_0.40082386039183526"},"_hasShrinkwrap":false},"1.3.1":{"name":"@denz93/vendure-plugin-simple-auth","version":"1.3.1","description":"Allow customers login using email and verification code (One time login)","main":"dist/index.js","author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"private":false,"types":"dist/index.d.ts","publishConfig":{"access":"public"},"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"scripts":{"lint":"eslint ./src --fix","test":"vitest run","test:watch":"vitest","coverage":"vitest run --coverage && make-coverage-badge","build":"rimraf dist && tsc","postbuild":"cp -R ./src/template dist"},"dependencies":{"cache-manager":"^4.1.0","graphql-tag":"^2.12.6","isemail":"^3.2.0"},"devDependencies":{"@nestjs/common":"^7.6.17","@nestjs/core":"^7.6.17","@nestjs/graphql":"7.10.6","@nestjs/platform-express":"^7.6.10","@types/cache-manager":"^4.0.2","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vendure/admin-ui-plugin":"^1.9.3","@vendure/asset-server-plugin":"^1.9.3","@vendure/common":"^1.9.3","@vendure/core":"^1.9.3","@vendure/email-plugin":"^1.9.3","@vendure/testing":"^1.9.3","@vitest/coverage-istanbul":"^0.29.7","eslint":"^8.36.0","eslint-config-prettier":"^8.8.0","make-coverage-badge":"^1.2.0","rimraf":"^4.4.0","sql.js":"^1.8.0","typescript":"^4.3.5","vitest":"^0.29.5"},"licenseText":"MIT License\n\nCopyright (c) 2023 denz93\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@denz93/vendure-plugin-simple-auth@1.3.1","dist":{"shasum":"0b9c8c00494af227e2786c64dae0334a3792473b","integrity":"sha512-EagqNexfpK4HxU4POJxdo/xBxIzguPD18mHfJjd5wdoM8sGlHIIPD8jgXkponpiOL5kLqFY/FLsUmW07n61NKg==","tarball":"https://registry.npmjs.org/@denz93/vendure-plugin-simple-auth/-/vendure-plugin-simple-auth-1.3.1.tgz","fileCount":42,"unpackedSize":44291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAOHFkp/bdpIeRrsGMNyom+GBWKJIGZiGdaXr5MTlmeAiEAiJcUDauEkBEfsdMvuVZelwI28BsvstFomDevonwufiw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKjVSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpc/Q/8CGZ9d9+HoX6nDtwWRj2l2Glp9cVcvTKHfQ/TwgzFlDdxTAqo\r\nzZ+SD9OJC7acGzwphDWwyQrYHMU7Vft2niKRkY4WVoScNofogf7uesG294Ug\r\nMckhIPqMY0xE1F7kW39IaLWN0bh4Fv9p7dhZN1+tYzIiGvSrYPqieYgQf5EH\r\namMTf2B+pgYJqFfjSUuVY2hmC2NGrHTt68rPNGmqmP9ciERDcqSp8guSsYWd\r\nB6WS0K0f22FLeu/4ifzlL8wTQLkjYqLbhze30GoYg0etcFDMS/2YDftlCcXF\r\nnhYQ4yAbOVgxRMn9bmykZVInlOn9MPnwNSDA8kzD3UaVq8tPyCF4Lk+R3BLL\r\neOlro1r+zez/7nU+jRbv87lwxryNxnlIfOUe3Ak0o+npJgrEx9wu9veVVENY\r\nVL4N7sUuTO4dkajRSpLql7gAfm1S/jFQHor3NQzCGRFfhRFgOW43WvRg4vfl\r\nrfCBjXlZ/KAVdTeNsQmCOUcUFT2WPerJrgJ++gd/WBg/LOk1cxWEiZEakw+6\r\n09HmqcHpKqXLSVxaWTb3TUego8A4+2pb9AXMT8FznWt82dn5NkaeobEhruDV\r\n7+fBCpNFtIhjUbCGVQz0AqSa4EKr1NybHofYu12gFbE3rAcf5k8nsBJME9lQ\r\nxsPX0ZDvgq4WoL6bqoOGHgMAQfmt/YFja9A=\r\n=fXS5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"denz93","email":"bdnhan182@gmail.com"},"directories":{},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vendure-plugin-simple-auth_1.3.1_1680487761768_0.21695874259394188"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-21T09:28:46.017Z","1.1.0":"2023-03-21T09:28:46.210Z","modified":"2023-04-03T02:09:22.096Z","1.1.2":"2023-03-22T05:17:21.243Z","1.1.3":"2023-03-22T05:34:41.751Z","1.2.0":"2023-03-26T02:43:17.671Z","1.2.1":"2023-03-26T03:04:30.962Z","1.2.2":"2023-03-26T03:07:55.997Z","1.3.0":"2023-04-02T23:15:18.655Z","1.3.1":"2023-04-03T02:09:21.961Z"},"maintainers":[{"name":"denz93","email":"bdnhan182@gmail.com"}],"description":"Allow customers login using email and verification code (One time login)","keywords":["vendure","plugin","simple-auth","simple","auth","vendure-plugin","vendure.io","one time login"],"repository":{"url":"https://github.com/denz93/vendure-plugin-simple-auth.git","type":"git"},"author":{"name":"Nhan Bach","email":"inbox@nhanbach.dev"},"license":"MIT","readme":"# Simple Auth Plugin for Vendure.io\n[![Test CI](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/codeql.yml)\n[![Publish Package to npmjs](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/public-package-npmjs.yml/badge.svg?branch=master&event=push)](https://github.com/denz93/vendure-plugin-simple-auth/actions/workflows/public-package-npmjs.yml)\n[![Coverage](https://denz93.github.io/vendure-plugin-simple-auth/badge.svg)](https://denz93.github.io/vendure-plugin-simple-auth/)\n\nA Vendure plugin allow users log in using email and verification code\n\n## Use Case\nA lot of times we want visitors (aka customers) to complete their purchase order as quick as possilble. However, they usually hesitate to create a credential to a random online shop at checkout step. So we provide a way to quickly authenticate those visitors by their email and a verification code that is sent to their email.\n\n## What it does\n1. Expose a GraphQL Query \"`requestOneTimeCode`\".  \n2. Add an authentication strategy to GraphQL mutation \"`authenticate`\".\n\n---\n\n## How to use\n\n### 1. Install\n\n`yarn add @denz93/vendure-plugin-simple-auth`\n\nor\n\n`npm i --save @denz93/vendure-plugin-simple-auth`\n\n### 2. Add the plugin to ***vendure-config.ts*** file\n\n```typescript\nimport { SimpleAuthPlugin } from \"@denz93/vendure-plugin-simple-auth\";\n...\nexport const config: VendureConfig  = {\n ...\n plugins: [\n   ...\n   SimpleAuthPlugin.init(options) //see Options\n ]\n}\n```\n\n### 3. Options for `SimpleAuthPlugin.init`\n\n* attempts: `number`\n  > Plugin will invalidate the verification code after user's `attempts`.  \n  **default**: 5\n* ttl: `number`\n  > Time to live  \n  How long the verification code is valid for.  \n  **default**: 600 (seconds)\n* length: `number`\n  > How many digits/alphabets the verification code should be.  \n  **default**: 6\n* includeAlphabet: `boolean`\n  > Should allow alphabet characters.  \n  **default**: false (aka `digits only`)\n* isDev: `boolean`\n  > If true, the verification will return along with the response of query. `requestOneTimeCode`.  \n  It's for debug and testing.  \n  **default**: false\n* cacheModuleOption: `CacheModuleOption`\n  > By default, the plugin use `\"memory\"` for caching which is underlying using NestJs CacheModule.  \n  > To change cache store to `Redis`, `MongoDB`, *etc*, please see NestJs CacheModule docs [here](https://docs.nestjs.com/techniques/caching#different-stores).  \n  > You also want to see [here](https://github.com/node-cache-manager/node-cache-manager/tree/4.1.0) from `cache-manager` which is underlying used by NestJs.  \n  > **Note**: should use cache-manager 4.x if using Vendure under 2.x  \n  > **default**: {} \n* checkCrossStrategies: `boolean`\n  > Strictly enforce unique email among all strategies\n   \n  > For example:\n  - One day, user \"John\" sign in using Google authentication with \"john@gmail.com\".  \n  - Another day, user \"John\" sign in using One-time passcode authenication (this plugin) with the same email.  \n  - This plugin will throw an error if the flag is enabled.  \n  \n  > **default**: false.  \n  > **Note**: This only works if Google authentication plugin using email as an identifier\n\n### 4. Add `EmailHandler` to EmailPlugin\n\n** **Note**: Since `v1.3.0` you don't need to config this step anymore. The plugin will automatically append the `handler` to `Email Plugin`\n\n```typescript\n// vendure-config.ts\n\nimport { oneTimeCodeRequestedEventHandler } from '@denz93/vendure-plugin-simple-auth';\n\n...\n\nexport const config: VendureConfig = {\n  ...\n\n  plugins: [\n    ...\n\n    EmailPlugin.init({\n      ...\n      handlers: [...defaultEmailHandler, oneTimeCodeRequestedEventHandler]\n    })\n  ]\n}\n```\n\n## Future Updates \n\n- [x] Prevent cross authenticate (Ex: users use same email for GoogleAuth and SimpleAuth)\n","readmeFilename":"README.md"}