{"_id":"strapi-plugin-passwordless","_rev":"27-ec9698548a2764dfee885ec43edf9369","name":"strapi-plugin-passwordless","dist-tags":{"alpha":"4.0.8-0","latest":"4.0.15"},"versions":{"3.0.1":{"name":"strapi-plugin-passwordless","version":"3.0.1","description":"This is the description of the plugin.","strapi":{"name":"Passwordless Login","icon":"key","description":"The plugin give ability to login with mailed link to login."},"dependencies":{},"author":{"name":"A Strapi developer"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0 <=14.x.x","npm":">=6.0.0"},"license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@3.0.1","dist":{"shasum":"51e3d19701eb5e664386f8e9b5b502c7117a7e11","integrity":"sha512-r9nhMoYewmhyX2XNNEnR3BG2vwH+q5wq4s9c9dZjwO/OJtShBEd6rp8iXmFg5ygll5n2IkwJQzJuDQwm1hYf3w==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-3.0.1.tgz","fileCount":77,"unpackedSize":206172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh03OqCRA9TVsSAnZWagAAziMP/3fGV4AlqdeJ7UlT6V1U\nHcLRJw9Cr2JDT2NisutpAjWl37LSJg2Z1on9DTEXD7ONgSltGNiynWtIRN79\nY7DzgX9++trDEza5qarfi6+yiSO8XyrQuLwvTwqW3U69hFDbUC5Cwdo1ErNs\nV/OsU1uLjkEZERX0jmT1M+JV84sVCxMZ5j4+p/MKVHXjRexJJm0NfnojA15p\ntkB8ZlrkSn5ab9nYkVVc2mXxLwUGhzdmIDe8CODcvNKNYgOIpWitbm8W2jIj\ngJn1pjFJ42j8cQ+LprjJ3p63NSKhyCVkFuYR2xKk/HHxR+CsHGtJvCALLTFs\n42M/0sl2dAl83ja7cJMJAsI71zduWvHmGHEJQXcmNg5zJCfg9APiF8F5R5xQ\nM2wml2RUG44on3y8ykGHfysDIVw3XhrneXMgPDrRJVpI2qGkl/hOcfpV8NqF\n13XSeZ46F+lkrySBBJ/+sO66sRJ4+EvtnPdsf2erMiz5bxSZdIg5HGIC1y2e\njiVgLW4AhtEoIzjI/RlyqtvmuHT9Y+3IU+8X46oHVZZ82MY/cCYvaZjnajcv\nvkcGmWOZoG0P+2Sy5eq8Bi/N5L/xMIbxI3vIuHpvyD3d3wGTwwSckSie+wQX\nyoyQsTgDTQvyaH2F1WJ0Ay28lKEDVffAO0YN4XUD/RF1ZCJhPqIbdpQ+QZOd\nlrZG\r\n=Hlp7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7D8g3cmPIv6HX/C9Eb2gzguSSIwlPfFvC6/GsKdM5wAIgP9Jw9SAor6E5vWSnkkwDhB3O0uCUCYvxHLj7kxbi52M="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_3.0.1_1641247658204_0.8775137680713305"},"_hasShrinkwrap":false},"4.0.0-0":{"name":"strapi-plugin-passwordless","version":"4.0.0-0","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"Passwordless Login","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"readmeFilename":"README.md","readme":"# Strapi PasswordLess Plugin\n\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /passwordless/send-link\n{\"email\": \"user@email.com\"}\n```\n#### Login with token\n```\nGET /passwordless/login?loginToken={tokenFromEmail} \n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  }\n}\n```\n\n### GraphQL API\n\nWIP for v4\n\n```graphql\nsendLoginLink(email: String): PasswordlessSendLinkPayload!\nloginPasswordless(loginToken: String): PasswordlessLoginPayload!\n```\n\n## 🙌 Versions \n\n - `strapi-plugin-passwordless@3.x` - version for strapi v3\n - `strapi-plugin-passwordless@4.x` - version for strapi v4\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE.md) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.0-0","dist":{"shasum":"c05f0e9c93efe6676ac0e1055a1d5b06fa8d0331","integrity":"sha512-PUoow1NSuveL4i7qTBIYPQgvcIttFPqgqeZ9DB07q3Z7vRtnm7IJcirOhN1nCOttq4BWWWQrwiEFM6Lw281ktQ==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.0-0.tgz","fileCount":85,"unpackedSize":414379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3FxLCRA9TVsSAnZWagAABYkP/RgDZeI0vh5WpaIAHy78\n0nRq1Ff9xpxIhTYUvvHzHaMKc5xGemSilLI1+3gPbvRZcw649eIm86D1Ne7z\noeS/f/XOkleyyJmW2K5FG2//wiCMblgZeshyCy5hYFWuxlVdwN+wE2ltd+1U\nfR0/hTpJ0JTyuT6lFDWK2Ub+huXZoX1sgiryjkWL9VhMyb+ajc20fwdMmSFd\n3PmL8vwsnH94l0kIKf+BoJ5Z9oiyxprH1jDzlaaEdbjIyN02h1h3XiUwqDn+\nsr0Si/MOk8rvETaFXHPZjO0zGne/1u3tyR8TBetza9PIWZeyq4rqHacf9pm7\n7HaXbSBu5Px8/5pSo4GxCNecYSriG3H+2CSnbO0/W+ugZh1uijl0xEV4vwLl\nHoZZUedDmBbTSFT3rxNeavUlyEK+yKG2x/cUIGz1I3fsKW4X8GIu1D7nMWMq\nAFBwRiFuA+Q8tjQtWd2swzVdxtXGHSxV4VEIo5mExoAzWrj7rWX4zPJ2RW/x\nDhsqzKWk+bng5RxHMvNOHa7CM0PZMAkYy5Y7f7yyTDT7fRGlHHcxl5lBsvvi\nlUDRrygWAIusxN/D57jMIvwKNTxtuuQQUYupwRry89uzDXj418f/XKSUfEid\nF0M9lXUldbe99+xnzZ8JuZs8EJF0T9VqoqVnfWrAP2IF97BvKyfTbWovA4F9\nGGuw\r\n=A1/k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDqjkevGtIn2RIRAVNUIBG/dow5qODKUTozVcC6+BggBAiEA3ShFOPUKZ4sRg2duZ8K2XIZzZWicpzJhtdSBAdYQKB8="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.0-0_1641831498961_0.5627141017488728"},"_hasShrinkwrap":false},"4.0.0-1":{"name":"strapi-plugin-passwordless","version":"4.0.0-1","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"readmeFilename":"README.md","readme":"# Strapi PasswordLess Plugin\n\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /passwordless/send-link\n{\"email\": \"user@email.com\"}\n```\n#### Login with token\n```\nGET /passwordless/login?loginToken={tokenFromEmail} \n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  }\n}\n```\n\n### GraphQL API\n\nWIP for v4\n\n```graphql\nsendLoginLink(email: String): PasswordlessSendLinkPayload!\nloginPasswordless(loginToken: String): PasswordlessLoginPayload!\n```\n\n## 🙌 Versions \n\n - `strapi-plugin-passwordless@3.x` - version for strapi v3\n - `strapi-plugin-passwordless@4.x` - version for strapi v4\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE.md) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.0-1","dist":{"shasum":"07d2a0d5fa0157f723e32190b9974b60abe91774","integrity":"sha512-6VDODLj0IpnnTVCtzzbNyZJT7iud6yXJ9YpycLLM441+JY3WD+udxfGCtOgV0aK1E/QDCqVu992njcb1Gp9Dww==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.0-1.tgz","fileCount":85,"unpackedSize":414373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3Gl6CRA9TVsSAnZWagAAjbsP/3I7xaIqJSKdjETaZoxB\n/cF65u7fW6YxG92+26jfr1T1i96o3fbsGkCuBJhKCosT0BoqWzYoALj58QLL\npU873a4maSCibwLxbfFsTKT2b9Tf0YAPOLeYDDdpYE7YnJZHNe0jLHakqBCx\nKisSPgfgrpUCd0bBQnUBDoPLWKlWXfRLqGt4IVeFnF9mDD5ealmMspQc5yGg\nSxp9c6NyCGmQWIfZ45xDCHBxZsb/eKgiKGoxcfIQi4UmCX5yIHeYdFZMfT+V\nMmCgQctrvc2HHn6KZ9vyBhSt56DJfRi17WWfGn5tf1lJU1iO9svU6grWHDBS\nstFgIhb/ivPYZFwsaywxfipnuhZlPCyVYcZ6FkNPUJXe68N1+rQ8/ilMHM79\nlpriUDDTCjKzMW4DxYrgm4NacKB1ni428bzGZddYzMuqQ1Xjibmh/bF26tTz\noDDnoq2xlWHVL0iFVidg9qc9Ce7KcLG0q+iN/UvorNrTX6rBv9Z9huwCvQgh\nz4Pys9Tw5SiaBGgTsEFYCd+ZW/UG1ZJATYvKwe30HEi5VNXRpDwrdrR88mmx\nvhfBlKa+hveirqc2CvSEGzpesUWcWER4JQGt9pKCT/0bobr9y5nqhOvhx2nU\nwNOmJC2tOjBUfyIfV1ciAo06Vc9jBIjkVWaaNJA6l9zxwozC3Rxrub6G3VXx\nwGir\r\n=r4pB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAlgwXEitYhZtdB6ZrXafjodwwbxcrp1BMtcIL2X4rfVAiBfUMCSr5yqGNg1BETH3jrzhhdHdc5wFoVVi9z3qX0COg=="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.0-1_1641834873794_0.5598230292816964"},"_hasShrinkwrap":false},"4.0.0":{"name":"strapi-plugin-passwordless","version":"4.0.0","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.0","dist":{"shasum":"8e7ae79211265d8498521cbab7904bcd123e3819","integrity":"sha512-syMB4Eb17w3B1p8F/6ZX/m0SAmhsSxfLasgyyDBJNmIZd4MrbIFZZ3v5fDmtBFwOafNnOhgLKqw1i1JgoSp2Rg==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.0.tgz","fileCount":85,"unpackedSize":414371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3Hw9CRA9TVsSAnZWagAAjB8P/ijih0P2DwBfUnIiLoZU\n42Mab97cc8PAFLmFZo/eqaGluMPxDa5CJjnTG//PbAIuPplCoOkSra/efS8A\njDw0ltalQOicATfTAz89Yp477ZZmAUHrjJNaxkhWTD5O4cUoxcroNtuKY7bJ\nNIC0ELGcoS4y8YnFxUxL9l8wO+6M6cZ/KFkn7yKtocd9VJYj2zZSW1TSBCv5\nxeWIEpCFXBj5EoynWRJpifW2dQCjlAyDS75vKjk5uN8eGwt1Z6QPA/kOGwxt\nS1jrcj4g2NxRcHwMg7at/lMZxDIEHSXhwJqoJoL+yNamsyrW3o124/vGydET\n9Vq5dX4XjQbVyDzd3k1UjUR8ckiVhAcxNi1y0Tuoaqa9LFWE929SuTjSfeO3\nGBrYhYEsASq5VdGQSDy8edGuhdl5iv7gzg6RVjrfiVIu3vK61OoH9WB4OPPA\nOqSyeLimZFYwQY6bjmk2r4Rln+GRv9AAl/Y0ynFzCCz4KvH1XaISmquUDp2Y\nxTALMRxQT+l1TK+uWBc//NgM2iVDE95eXgINtFPH8xCO2nYZ7o9p/Pp1Iuyd\nuevl/TZA+Ml4ypp6lxlOpAW1XgMyKiy1Hf9olBA3X1HUBB7aFFiRndKgAgk4\nkGo/ANKVu/cq3/mgTKLbsGodTNWGeolKhS9/pqgoRg0NfVnolmnyGEN2tEl7\n0KaB\r\n=TUan\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGFEZVnfggar5ceSgUUQ1K7fMOrdrjnW1VrWK8qyq1UwIhAMCMUVp2M5bHkKU6qCaMfHNSX95HcPTZ80Ar1MCS5wAm"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.0_1641839676874_0.9257176475998008"},"_hasShrinkwrap":false},"4.0.1":{"name":"strapi-plugin-passwordless","version":"4.0.1","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.1","dist":{"shasum":"efc4c6600e7c60bf6e3697013148738cb415b9c9","integrity":"sha512-pQ2hxNlaoQSC+vlhxKbDWHzDMPTv03fIFGW0nAmQJnm0tTLqSEP1PviKq68RJZqFmKZsB/R17z3JDkfaZLZD8A==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.1.tgz","fileCount":85,"unpackedSize":414272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+7NpCRA9TVsSAnZWagAAh18P/jEVHAthwJIQtUb94Hb7\nn7sCs+7zt524ADQEKx9ydN1fTu4qO3T9KUdU7GeaPlE2GnNzEP1i0UuvQ2Gf\n5pMLZ8m0Xn9hsXJUNG3rVgMymvDXCKU8Hxov8w13FAsB+YRnpupV4RyBSE9F\nFTtSqs/lmliIm3m3vjmNXE0fMW+K7D9+7B8EctUFlZfightJcB92bQ6y5kPL\nrng7gVHiSA5DLZVvwINWWmmfr5iomRTuVUJnRbgmwIB87UsBVz5gWgl0wRYz\nbTrOkG3nxlYNqOG9O/X4wk9QdHr15iiRu3zFF6/KQIjXNom+LNhg3Jp4CMz5\nWrmqUigfxY1YM568521fGJC47IxGqGe8dmxYcv3AEEriCwTqL0/eGguzfVen\nrr6Bh/0obLR8zeLIyDsyP43leNSXG8PJANY8OlCJneYm55hkI3bBXzFJMh5F\nRfC/tGVvYwA0kFpCnhxKxdn92kUMkHD5Hww7GjQH4UBIOlUQSF87qTTOF9Yi\nXaHyF1DsZARnklyg9/psug/xlTCjwM340dH0aHkTQWJYEv5XkDNdw85t25vR\nkiCgyvRg+G0REGTxlc5AdURWD2+7dFI5xISX0zj/ICDOGRJZFSjloJjjFFI4\nCuzZFlmGZKfQpVQAhvLfhlQbB1m8kdlrCeYIDAJxJaXv3mornZItBJcn7i4N\nN6x3\r\n=0uJs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4DYO8BBfC6NpoIrzPrFt1mNKlOeAANuYk9kpHYtLfTQIga2nhQNQZ8ZMiL9Giy+9nGe0bFid7WAaE3+a7zS4O9Z8="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.1_1643885417005_0.879680918719951"},"_hasShrinkwrap":false},"4.0.2-0":{"name":"strapi-plugin-passwordless","version":"4.0.2-0","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"readmeFilename":"README.md","readme":"![Logo](./logo.png)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /passwordless/send-link (v4 /api/passwordless/send-link)\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /passwordless/login?loginToken={tokenFromEmail} (v4 /api/passwordless/login?loginToken={tokenFromEmail})\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP for v4\n\n```graphql\nsendLoginLink(email: String): PasswordlessSendLinkPayload!\nloginPasswordless(loginToken: String): PasswordlessLoginPayload!\n```\n\n## 🙌 Versions \n\n - `strapi-plugin-passwordless@3.x` - version for strapi v3\n - `strapi-plugin-passwordless@4.x` - version for strapi v4\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.2-0","dist":{"shasum":"551354cc5942a8f65968c8d3920bc01a70957b3e","integrity":"sha512-O5ZrBS0CqFIKFAPlptJfYAO1dWytOTzIG+QLrFVZExdcqnYWvUd2PKMnYqhX2Do/T3/SCIyPDfNyje7DFZrH1g==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.2-0.tgz","fileCount":87,"unpackedSize":45410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBASDCRA9TVsSAnZWagAAu8IP/3lmHDLmRkVrEGifKr97\n6pwZETBgpWECJy7L9a7MdcJICuKwAMxGTqLzEG67kRqUUyv1gnXv6DemIqIM\nIxh7Rc3+f7zPp3PZl7x66Qd8ka2fCpg2HORkmO4V1W8EIu2f3uWuT7IHWIpq\n2+Ry8RyOA2SMG9t1Qdj0z8Pnz29HalwIy5NMLAIlWuzjJ2rL3ev+xy+NsMKa\n49z8kqwp6f7unhxTCwRnyVxVuyWNu8N44idYQjLDimIRisU3bKeA0qr3Kj+1\n4TyXEP6Klts4RSJLHE5SY7I2aO/nIVZBodINckB9FvSLSdXE68fjFIC65a3Q\nlIZslwiIrD+bPu9wLD6dQZHOMLrep4+AxMbh1bfmOvcxfrAw6PtElZcwiuoQ\nThLcIH9iRR8qSXH/I7TqKV13kOcCuWReIWILusl5SGXqvj70kYsqlEU+8aOW\nmICvIyiCkCpjOTRR1lNzKHaie5ZWwgf8d+KMjWYWlORwpNtL0IlfSgwdccrh\nst8/0ah2Dw+FHFEOhci6dOGcSk5HSiSE3EEiN+tf5kPSOY2QieDOliv8wiBe\nCjyypThp9Ux3C/VK2TW6bNdDLFARVAzwF0IoXez2wMljBQNak1ugZ12sc+gQ\niWDCH7wRsMcjMgfwjAI8RVwb9XV1c4kuAdE/cVLpWPp5dzKbq3Qn/u6Lk/9j\nvZf3\r\n=Sf3j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN8jGpwP1SIFsL1qMrEZW7JNfxn29Ky01tv444cjJiKQIhAKmpwPyzJ6ctR+h8wFoKIN8ddjjwzctvLBTOP/zA+GwR"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.2-0_1644430467255_0.7186581148891578"},"_hasShrinkwrap":false},"4.0.2-1":{"name":"strapi-plugin-passwordless","version":"4.0.2-1","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"readmeFilename":"README.md","readme":"![Logo](./logo.png)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /passwordless/send-link (v4 /api/passwordless/send-link)\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /passwordless/login?loginToken={tokenFromEmail} (v4 /api/passwordless/login?loginToken={tokenFromEmail})\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP for v4\n\n```graphql\nsendLoginLink(email: String): PasswordlessSendLinkPayload!\nloginPasswordless(loginToken: String): PasswordlessLoginPayload!\n```\n\n## 🙌 Versions \n\n - `strapi-plugin-passwordless@3.x` - version for strapi v3\n - `strapi-plugin-passwordless@4.x` - version for strapi v4\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.2-1","dist":{"shasum":"3fbc9346b9513c10754af25523f75be57eee2075","integrity":"sha512-yYme6IBnkn7wdDYR0yUKnIRAdr5tXRjPJfirUsogbUVaDQ/PoBdjbf0lTL2tnty3kWcqJLGTRkedJ6EGp1l8Kw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.2-1.tgz","fileCount":87,"unpackedSize":45354,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBA6+CRA9TVsSAnZWagAABkwP/jFrNOdgbPxu4/7rwWpX\ntz1Qy/X61Hpy3s5Xv8v1EzS0tUw1/1XaG7jl9b5ETgMmSbutZbRMuRF0ohJ9\nqRPQqLJCGIdsPqPaEGuarNqi5GTIa8SsTPTmDe8D+WlVfqZwLPvMseHa3ZRR\n7EWVv9kF82VmxftEBormTbBjXUlk7SuffTLNCcE7Dv6CfjXiIfArfsYnFc2X\n3f+IEGTeKPBdmDXy/5GiYeerZiqwG+UH3FeRhQ9TU59IkjGEBE1Qgl1Bl63F\nVR8Otvt+ByXQeJ8TyA8PbHfFypzoajv/xlLqixf6RBISD7ZgGO36g2GeDoUg\nIj3wc5tm1Hqn3XFv8WyHXLY22LcviW0bSCPQ+2UBNLRPdnWkWlR7p17XQFHY\n7fq2lX1jYLSU7o21sm0CxtSxj6DoprSqCHhHqIkZ2u6CSyeBdNV2VOvE/7b5\nzqKW+bPbdjw1LH90t4vql6eLTSJ5JHCkkO4x+RZcdSnYFVtHqjdHj7FtV191\nHZF0sLDkGBm2LIQH0o6nTtX8QIIy4DoGhxnijYzc+5bJjk2WhQJ9CMkmi4KL\nVXPm6WB68XVyE0UqnDqySwkNVPgeYv84DJVU9MNFkJHd4i/B+Mvn6PqCpNFE\nxVj+4K+h+rSlkPbxscpN3W5vTn4RcM+wYhPAz0QjDUyau/qoOeZj158Mxx0g\ntJcJ\r\n=/NV7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW8bPgN9SOmlTWI5wjyn35LTOt05LuAObiM1H/DEzx7AIhAPSVFKMuROlTtWsC+ZDzZS5uL6Qdu6fAu0enUK3/vOEm"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.2-1_1644433086232_0.560815696971305"},"_hasShrinkwrap":false},"4.0.2-2":{"name":"strapi-plugin-passwordless","version":"4.0.2-2","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"readmeFilename":"README.md","readme":"![Logo](./logo.png)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /passwordless/send-link (v4 /api/passwordless/send-link)\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /passwordless/login?loginToken={tokenFromEmail} (v4 /api/passwordless/login?loginToken={tokenFromEmail})\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP for v4\n\n```graphql\nsendLoginLink(email: String): PasswordlessSendLinkPayload!\nloginPasswordless(loginToken: String): PasswordlessLoginPayload!\n```\n\n## 🙌 Versions \n\n - `strapi-plugin-passwordless@3.x` - version for strapi v3\n - `strapi-plugin-passwordless@4.x` - version for strapi v4\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.2-2","dist":{"shasum":"10e895e487663fea673fb4179dc78516e4ecf247","integrity":"sha512-eqn70W9p1+HByW9tvTrkBqI8fMy5UKIAWReOX3yoKHqbjs2NimVXacy0hwfhFsfGCCebiSU2eK5BPSqQpJGZ5A==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.2-2.tgz","fileCount":87,"unpackedSize":45366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBBEmCRA9TVsSAnZWagAAeN8P/jVHy7C+BD4iLW2FPUND\ngvXnzc32St2WLVaVuI/F11Ns+QzjoD3CSAArPtAiPVLwYscAs3BXJdSBRiQ0\nmE3stbY9lWUfKSZ+2LUV9MsAgntNdZ9DFh48WcdVXC5KkIElCxGxK2Fv5Jg7\nBGhFvAc4cMVgLBltiobyx25HXFJnCCxwsAAMQ87VknlBJ6ubGhI+BJ3ViJZc\nJ9o6jBY/gIDqC8UyAeeQhDZctpMrhBwpC7PnH+FLPYHb+VYzOIlkeBzWDMzl\noEOSevHMvPYNTiwP6Gac/IHqz0Lkyj+EEK6AQQYdYEUUAV7ZRvjJz0Fv9Ej3\nCuA+y+0A7lrHoYVFsz1WDkSrQgkXp5DzhHBG0NjqK2bATpY5+c61IEBujo0u\nwpM7D8tSTxz+V85sLMSO4tDMv3LkKN4+5L+ZX8Q2eiu+L0RUdhviwNmpOzQf\nH+0ppOx36kSdWuVDoxFfn2R24VhGdAAUnsUmmSU70xGFhN7ZxaJuoxS60WPz\nypHTsPR61IKfV/YgrzDMzkZEFuN8ykLhQyGksbZBXpZ3xgsKTqKip3QXwpAy\ntoVvro1pUu5vy+PZu9lIrHIdc9hAJS6WRsaK0l4cZnieUzzBItfOZxhlEYFs\nDKgLpLpiucFt7lQh8eypAax2qGfRaR27FpXsTjIL7GjPcIAF0DdFtZfPLQ1S\nQyzl\r\n=2ccl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCon7yaolsRNLth/UvMlI9ckdrC6BoxDkZbdAU6aJ7N0wIhAISc35+6OpMQy8ReUiq1rf0LepJicxNSv2x0PaZEHlh7"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.2-2_1644433702870_0.18346203303585162"},"_hasShrinkwrap":false},"4.0.2":{"name":"strapi-plugin-passwordless","version":"4.0.2","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.2","dist":{"shasum":"e86b3dd3143aed24f71a1c10e63511bf5e754651","integrity":"sha512-4lceyKVKzM6gJy1Sunt+upESWuG1EkD5LHBLTOntAF/0JBSZNbC2+AXh68rplof9AHV1qVMBM6TTJT/wFOhPhw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.2.tgz","fileCount":87,"unpackedSize":45364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBBIlCRA9TVsSAnZWagAA98cP/RTg9fNmT+UL9veBwpf3\nJvMDu1JImX9NQy1t9YoAfrOOpXHH7T9mr/eoYPf3Ykdnl4f0FKY51z7fjs/L\nMO9+A5yZyIy2lw4V3VfWEDvBYGxV4LA0nfRPzswqJCd7pNYZOkLsHbGpQw/Y\nzz561VPdXVeQ6B+RvGLYXWUa97Lmh7Hn2VKvyYjyvfTvzifW4j4rTvqPQQTg\n82JedqEkKuQrrokHgSavNphhSGCTyHHXjmNCQalc/ut7Vfi9pJYr/yk/8CAT\nPUFPNEBV8jIu3Sb0GWddl8a52W59241C4c1nQ7OOrYPb+9yQrPg5+XEnpCEO\nF3NzBb5nI7mlsVIwqZJayBIp3W7xOaIrOnR6ntshXxyJLlJbYZBYONwvciLy\nbHLMQtie8ROvES2suS83fMKr8V/MP/kh4LYp6+Z1b2wYPqGOAsvWWUr3J1Vt\ndLqM9+EekmEnW03eNoAmyqxyGYKYPMvoftwTZje8mc/qz98tw4mkEw2mQfT4\n/oGtfD2ZxOiP3iQPlYSjtJe/wN/1ygjVK2eMmOKT6SVuoK0RUXaBwKitqjcA\nubgToXTsKLo2F8Ntx5JXAiJRcQxifELgOVD46TGQfsMVb7gWjQkPyVzMbUEE\nKUhXVmtcZaSKF3/U1T42/uK8FgjNmv2GCGq5VApM3TD8hZxLTlE2l8meZrbH\npOUf\r\n=eHZ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJOMLi7oG6hGrEWi5v9eZEHoLadiksXYIZXeTWPrfgPAiEA7xPf1522MfPa+LYoAgq/NW11mDJblCbFviZoWmznSPg="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.2_1644433956962_0.6733573102793387"},"_hasShrinkwrap":false},"4.0.3":{"name":"strapi-plugin-passwordless","version":"4.0.3","description":"This is the description of the plugin.","strapi":{"kind":"plugin","name":"passwordless","icon":"key","description":"(Non-official) A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0"},"peerDependencies":{"@strapi/strapi":"^4.0.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.3","dist":{"shasum":"0eee34de4fa91540f95b681af088f4baecfb541c","integrity":"sha512-xV31VLp1x1SMNUCTr3KANHaDdv08IiJwvae2uWIxZTuXa5pEGwuOsY+Aknb74yXiQ633h4TZV7XxT0eHDjPkqg==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.3.tgz","fileCount":87,"unpackedSize":45450,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBCugCRA9TVsSAnZWagAAI5UQAID3zM+cea1+r0eN8NXi\nzQq7VJ89P73Jnyp9FPnat9indp6XSt1S1C45COH7sXmYUYCiIvXn0ECNQrfA\ncvNuDNauBxt8JDr0xY/K10p0PhZIqpOXA2rhGeWHH+fOgmlQMBLYdtpuWdQk\ngQKu8gUxAAjXyalXvHYNF6Nie4wFiuyPdg5K+U3HHrGGrEieQxAm96UkQCrh\n+nRRVazkOEdOhcMl0LLhwaXLE6QmpMsYB6n48cgnXwhNVaLFI23o29oi+R6g\nAZ1r7pjnaBOHjDWm110eAGwUeMVEL2jdRZeaepthl13BfGkuwMW16Xf/NIty\nYCSNo3s/Mv92GvpwEaT4lZBzQZakjowwztGgP3BrOdP7Vf1N4C+gwe5v9V6W\n0QdCx6HLIBsBAWmR6JS5n0tVB+38iccUXT/9UoVbKaSZg3w6SwiBQtv5mLK3\nHeoTg6M/n1/I7q9YU7wB6WUCz3+HJ+PsUAZnHfTjDIOqLLcOo0jNtfg7s5VN\ntKrLjfFYnXlQWV8fvIBsSfS4d486IBbMNcbO6fxjyr8+2oAhwxpDdrhDhoDg\nncUH+tASgmhVGahZ1vd8LCj59mQT09yqmZI83FTNvApxf5W6NQaS3V3nxo67\nCBj4eHmaZJjZkpsEcKZrq5G/CBO4LrJISIiy8PliWZ+K3AVsCxwbz25ifVA7\niZ8U\r\n=zYug\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrMSKFB3SsefmpmCEVgcY8I8SU+enBJEWNpdB3w/hYsAIgV1e0APmKUS0F15PZWSsG0/mQGgA0OF4PAzwIG1jIQoM="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.3_1644440480066_0.43221925827994956"},"_hasShrinkwrap":false},"4.0.4-0":{"name":"strapi-plugin-passwordless","version":"4.0.4-0","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"readmeFilename":"README.md","readme":"![Logo](./logo.png)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](screenshot-v4.png)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n_This command generates a brand new project with the default features (authentication, permissions, content management, content type builder & file upload). The **Quickstart** command installs Strapi using a **SQLite** database which is used for prototyping in development._\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless Login** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\nBefore using the services make a sure that endpoints open for unauthorized users.\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.4-0","dist":{"shasum":"9f4463ac98a643a820facd3bc5b1eaf0b50710a3","integrity":"sha512-RgRSFU5PFJiRlUg18vDVOtUWdsGXLYEpB+UuR7L89XfkFsAegCA2l2cqdPgvRTs5IfRSN/ZscDSD8aXDA7S3zQ==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.4-0.tgz","fileCount":100,"unpackedSize":82900,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEOelACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDshAAgL7WOJuwsyK3voID5mvCIiF6HWfhaelHKAkX2FBdhrPwiNPS\r\nCcl0+shUw5ZXjNv5hE2BNG72aYfZBQx6OQ5UYfGHkw/+/26/8FMhF9pM+gvA\r\nB7fC2bk7iNbVlMKfcuL/SRnwghS9Xia3sEEmNf9e6CHNo3EcL1xt56BY1eEn\r\nrQPROCiRLZDq1pekeV4WezP4nYxWdIIJTOcHFXKWupIuTYAiiK89L0PfxVd5\r\nlq+cLym4GV2M6LJI/I4e7G1JcLDTVvrBnDprWI01BvQLu1q2C2qcBUIj7Qdk\r\nFRamUJyoGifIgkFrIEaWHUZvqEFwmoG0jVzGqa+SgsyopwoTOGYPHAzOkKQW\r\n06E/RxuaioI5pmPfzq8xGFST0sSWgiSwFv4tInDmzN2WrryzA9H5HB0gU432\r\nyDyppzSIa+4lEJ/FKF91yBn3/+CSPwmHrYypNPyYIMyX4So4qCNGXEQalAmY\r\n0R3V7T0aMWlFSQsIMddVRkj9n1TSd0rlRLQfYigrfTU+eAEWBn8bpGKxMYxw\r\n/1XzOazNGarEb6NyQvRhozp7zC4OV6hD6l8eOs8bsoEOlt+4Mta+H91+XaVG\r\nkYdD+MMyvxWvFvvyKWY0+33MltZe3qhb4GEpB8RPO8NQtTNusMChlmgZowpf\r\n155K/rqXOqcPWi01IkwZNagooCDhT/ydOzM=\r\n=c/yT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB0HcsU6v+cF77CL7I6X8N1S29CKnqGOddqf4QuDpxBgIhAKQR8qOyruguIBzuKQPiq8JWhpa5WO60uIT/4RqOYzAf"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.4-0_1645275044964_0.5482140482058577"},"_hasShrinkwrap":false},"4.0.4":{"name":"strapi-plugin-passwordless","version":"4.0.4","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.4","dist":{"shasum":"4025bc2811421f4e8f8d69a645960a93d7cf804f","integrity":"sha512-Q6Hiz7TT0nQcbOK6E50YbtsOV7T0r1iQMsUpLsZDxH2WWGaFaHtANNNy+O23VjIBKqysn7U59i2v5Sqfn2Ulpg==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.4.tgz","fileCount":100,"unpackedSize":82688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEOvyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5gw//XBrUsP8qJv2lxnVwiGG9Nhf9+bTQ6uepvJonTzb3vCwncys9\r\n5qknIEAZT3Qg3z3RogplOawQ8UwvrC9T7g8w8btuO0gklqPM9lraq5cm6Whr\r\nH8fHSY9E73LlR7Bs6geLsqXNaS6BvwkQUQ+iTpLp7QtVxGI+J1zR7duETo64\r\nHXgaJlyY+olM6fq+5935QfLSBRFUkqapeJCjSRL2HEIMBxR5EA1bbim96MG2\r\nOO/OOgSmKInKTHFQPE3C61Gt0Hzx7H4fvzk0jDwzIsCXiku2ZRUfBUHDNOuE\r\nCFJQSrqp3JkGk452OobBL7SWiVxsEr+8gL85+NHQOhC1ScR5GJkfoheEHqWI\r\napkWK3/BE7iun/EwGYaV8pLKbe4GPSj6QV/eY7by26YZo66fDqtO4ym8hvW4\r\nivjmlajcKiW8uN/jXpw4CfHQiXYguf/RXlsaSCnIJpXZstooAWxmBOCHV3IU\r\ntTqw2ZA5VNZDvPNgy7erUfzhh4FPDn83r6Of5EeulJdsgajDPyYjAueCaJLC\r\n56eAhXFl6+1qGdVvHePd8dsK7tStuTpwUcTrfl4L0eMqImO7NORng76U+gyX\r\nbHhP5g6rZ0Nery7k8tLAaMor0E9HY/iNoVM/smPvHvKwP17YbXltWo7N9hWE\r\nfDjoiirFMI8Zc8TZhL0rdhv46r4sczpyxqs=\r\n=iWhv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs2VUoSKg5OywbQu+gvTR8HjDRT5LjGa/BNYifnXMmaAIgZLcd06kHIUJDBcbCGkqaFuQWxmvOAUKtqDs6eDt969g="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.4_1645276146462_0.013232023113013192"},"_hasShrinkwrap":false},"4.0.5":{"name":"strapi-plugin-passwordless","version":"4.0.5","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.5","dist":{"shasum":"d6b9c266af955fbd7cc448360d805b9e2ee5c72e","integrity":"sha512-jqcyZJDEXt6sl8lDvJmMiYjrX8NgDe88+gYCAlJWFf/IGE4XTw0wa1XimpByuoiKjvIpVes4zIf0h9iPLEX/Dw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.5.tgz","fileCount":83,"unpackedSize":44337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEO8IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOXA//Q/HpVJpig2EjFU3WwXtk9cftD/bJ0pcvrdFauguR0rsu6eih\r\nMtDXUafG2uexCt7etiGfh8nuf0qTG1fsoX7ri0Ub8Xdn5iuAGKE4bXvsAdNm\r\n4AtBIPTvA1njNvsBnUZ9D8V21AtjefBFVGKu8zZnrN7OvcUk8chwigOV+Bbr\r\n9bsQazPgo+cmuKXG9D2o9cX/pveJEovSOkfxGQTHF3KgUVk7mKD24ivc/zTj\r\nrQFKsKwNvvwJS7D8fLVm6fPauE1+qnxEgwKmEtYdPpcN1D/p96UkDMY++/XM\r\nfOn0Q/Mr1vhzUq+g2dv1GbrC1VyOq6lb/e9qedC4mdeul014T/mzjXLmW7WM\r\ndvWzeHMkn3MJ8Dhb5iy7cGQfInj8M7gHUUkySTzB1bXLDYsbGPwK3vOJkAwo\r\nFmYpnPssETiDKJYa1ejIP/yURc+fdDZZTn453Dp9RgMCHwO6EuFRseKGWl//\r\nb1sHaEbsj8BmJtDsAKcg6wWmditFRKFsP0NxvbgX2mCCH7wBbccFbuCBE4z6\r\n32zeJcCSwc5p2WOiGb42pUxMWKv+Y+0Z1f0bROMWUkP4MxkCh0KTq1RqkyyV\r\n7IV5Q3gXs23V3LmBTIp/avJ+kF5Wo8zNW+9iYSv05kmXWG2zDNAmnv/qske2\r\nJpeoKBnyANRQvop8kXfUFZHve7pVLRVtIQI=\r\n=dTjL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqrewKpYEwFRIKcM+Hbw9/C0l1EDAoY5LUFrOdnsVs7AiBmysBomjM4H/mTkS6JFAtOzAa4JOAydkUdivGfqGB/ew=="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.5_1645276936415_0.7378124054247011"},"_hasShrinkwrap":false},"4.0.6-0":{"name":"strapi-plugin-passwordless","version":"4.0.6-0","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"readmeFilename":"README.md","readme":"> # 🇺🇦 UKRAINE NEEDS YOUR HELP NOW!\n>\n> I'm the creator of this project and I'm Ukrainian.\n>\n> **My country, Ukraine, [is being invaded by the Russian Federation, right now](https://www.bbc.com/news/world-europe-60504334)**. I've fled Kyiv and now I'm safe with my family in the western part of Ukraine. At least for now.\n> Russia is hitting target all over my country by ballistic missiles.\n>\n> **Please, save me and help to save my country!**\n>\n> Ukrainian National Bank opened [an account to Raise Funds for Ukraine’s Armed Forces](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi):\n>\n> ```\n> SWIFT Code NBU: NBUA UA UX\n> JP MORGAN CHASE BANK, New York\n> SWIFT Code: CHASUS33\n> Account: 400807238\n> 383 Madison Avenue, New York, NY 10179, USA\n> IBAN: UA843000010000000047330992708\n> ```\n>\n> You can also donate to [charity supporting Ukrainian army](https://savelife.in.ua/en/donate/).\n>\n> **THANK YOU!**\n\n\n\n![Logo](https://github.com/kucherenko/strapi-plugin-passwordless/blob/main/logo.png?raw=true)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](https://github.com/kucherenko/strapi-plugin-passwordless/raw/main/screenshot-v4.png?raw=true)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /api/passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.6-0","dist":{"shasum":"567221d45f37ffcba282452cb0fee8b09582b126","integrity":"sha512-voFU8rRDE1igb76toqQLr37LLCbvZuoEUJYOcxDv5VhtEjTctjc6GfitXjXYsCxPjoxdYlVIFGMudqQJCX4ITw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.6-0.tgz","fileCount":83,"unpackedSize":45382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH3r40dqFVEYBzYWGwzYfBxi1+Wb4bxL/oDg6JdK3c0bAiEAgq+W5Kyh7IH8Ya6VgIovUqHVg7p9i6COorUqpXQBJgs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijhTJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5jQ/8CGXdJepJtgeVV33LFZR6JipGq8IA3ZivNPfpgiFDJOWDgFS3\r\ncdbB3hUdE3COCmtnon+Y+RuIFG4PNhpKqGaIKBLg8kdLStb+cGobn6Lpd9NZ\r\nMHHGda/M1q1YUwdgXv5w9jH+gBO5YMiXV0BAYZcbXOzlvtvP0lOhIvRHkjfP\r\nL61oRQOoBhGPEx/4yU4mJl+s8PjafNDfR/akQqieuEaEzV4Bll1W7eXfcWte\r\nwBArKbouD2Xq2+NiZKjH1iYiezvF2rC4q3jm/FuPWnSKNQdhQpR7J9WS1qJw\r\n7DDdwJIV0YqpEww+LOgHusLm4Dlqq6Q+ojot62CJKMnaRYPp4Tkud9Ky2qYN\r\n6HsiZyWPx8nH5yPApotwnfgjqoqECvDgthLQ9PHL1iPUThiPY6XPUxqDq2jq\r\nYXWzb3fV7Wm+fCMhnrdiOthAs9FbZrgsUl2PMw1GHnzrFP6cow6cHIdDYsz0\r\nJjRAvVVGqrCJK2zPkeEDi+gab483qrclx04gXRlGEV6WQn85elNgi7fO+6Eo\r\n6bfGkZCZ1VvluTMG8730HsVSZhExl+DyjiPKu4vgUUJvzk2CePl/VjAIYarp\r\nSYjiOjUa+X8MU32tp8Pj/fVNevkJ7hBzjyRkeyOpyAN6jR1B6WyJq7QUSh1F\r\npGLlLJa3YkE2k0J5O0cN4DF5sQKXaIYV5yo=\r\n=7WaB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.6-0_1653478601159_0.5301196748823143"},"_hasShrinkwrap":false},"4.0.6-1":{"name":"strapi-plugin-passwordless","version":"4.0.6-1","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"readmeFilename":"README.md","readme":"> # 🇺🇦 UKRAINE NEEDS YOUR HELP NOW!\n>\n> I'm the creator of this project and I'm Ukrainian.\n>\n> **My country, Ukraine, [is being invaded by the Russian Federation, right now](https://www.bbc.com/news/world-europe-60504334)**. I've fled Kyiv and now I'm safe with my family in the western part of Ukraine. At least for now.\n> Russia is hitting target all over my country by ballistic missiles.\n>\n> **Please, save me and help to save my country!**\n>\n> Ukrainian National Bank opened [an account to Raise Funds for Ukraine’s Armed Forces](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi):\n>\n> ```\n> SWIFT Code NBU: NBUA UA UX\n> JP MORGAN CHASE BANK, New York\n> SWIFT Code: CHASUS33\n> Account: 400807238\n> 383 Madison Avenue, New York, NY 10179, USA\n> IBAN: UA843000010000000047330992708\n> ```\n>\n> You can also donate to [charity supporting Ukrainian army](https://savelife.in.ua/en/donate/).\n>\n> **THANK YOU!**\n\n\n\n![Logo](https://github.com/kucherenko/strapi-plugin-passwordless/blob/main/logo.png?raw=true)\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](https://github.com/kucherenko/strapi-plugin-passwordless/raw/main/screenshot-v4.png?raw=true)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /api/passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.6-1","dist":{"shasum":"9772c7af9aea3e182f5e8937145f97425d2270b0","integrity":"sha512-aZsml5R/J9Za6djvN3GTkbIi55ZvYqjc08wgLykjNnu03AY986Sto3q4uHKb/AVrW7X7spAqcjKYHeq5sUmfCA==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.6-1.tgz","fileCount":83,"unpackedSize":45402,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5vMT7jzBRyFMEZUfH0RIHWaoA2iWlERQm5du5ALWsTAiA9ibCSq4ufAGbfs69RWiCWNYf8FHoaA/q36FupXIE3sw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijjXyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrmaw//RoHgRWBFpwSNyeuSCeTjQN/+xaW31uZBeMWMABK6EeGGVyI8\r\n9jrUC3YUcuw07MNvf6/KT+/nitYwD8RngOCtP2CExkqWViZ6O3qJtqyz0YJH\r\nlmj/7mve/t1B+EyBjcgIidVgxVKEqXdvD4aapeDropOcJufHFzdF8LeR/zEI\r\nYuCZftorsvFn99LD22mdncz9Vhbi5HTI6E9bcfIh5rrABG7xEdefQa0Bnt5c\r\n2c7NByIkpwpX/DSdmC+cVha1vh7pHuYMtXw2jhiGV1G3RP3St3CVBAjt7Iso\r\n35/gkO2kslgEVXDPlU79oWYqXawGxWk0Df9QNMz1H4ufUUJKRucqSiUN1EBD\r\nEv1TCB5IkOpz8e6kLRSwFR+zCrkZJGfu+F70J+yaiQqdxl0lyavS3pAPqnGm\r\nxQUlF04TQYe3UmOhs3OjQSFj/DppYsISbVHG2vm5cADkh4RvYe9AXO6TvvSB\r\nfoFPef3/W01/Ub7xOKXMtzw4KKvG/1aO4G6w5QaWG94OFTXE92z9cZ+h++dB\r\n5mM2fufePgnbbqeYJ/atDJk0XybrOpivTuLzFXqkCOEYeVOBltX7gwbkWgvJ\r\nBJzS6t9EYgIMjtcWf606OUVLtFSyMvS5v0PZztJOhEjoBECl7BsUtXgPQVsM\r\nBDFGafLvd9dF1ovZBOi0Y4+TgxpTkBg0HiI=\r\n=VEWz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.6-1_1653487090600_0.9028991785584652"},"_hasShrinkwrap":false},"4.0.6":{"name":"strapi-plugin-passwordless","version":"4.0.6","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.6","dist":{"shasum":"1ff6d86610efa49a7ce578ea306570758020e527","integrity":"sha512-HdM/XVuz0WugHNRWpntnsDn4fM44rowl8xMp7/KTAmeMA2CNB78LMZ0q6G+Fjc+Gzzijahq3UGJknF7ku/EAyA==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.6.tgz","fileCount":83,"unpackedSize":45400,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIWDZB60FMV9BX6AibvaL20dF2ZDxKjvfgmHgBVeyT1QIhAPN2v8QHyOSgxZib2YBOjYDB6rXbBOY+fhBTgVsElS+6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijkMbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmppow/+JytwBk1JEPuuwZLbGVwsxCrCNA/hlRwj1HbXGZKLNLhmiz8T\r\nGoMUYMTO1nyM9tcNjO779yK87+kc4PyEBTQkPlMF8+p6fuS/ghyiK9yHuHXL\r\nbdV0+TojrZHUzZZfA+KDzYLd6nuu3Eovw2EhxO2SS7BN+Ybc4EsQCDkMfT3Q\r\nH3aQBzmBF5xlopzNdUiAfgMmnyuCp2KDpfHRoFsWSzU9PMC1iJPvEpFnDZqG\r\ncBW+6xrtcahTFS34yTJZp7vkbkYr9b4uhQKDAdx6Fp8hBVT+c6JxrgLVQH+Y\r\ne71YrlLay/X9AVUk/Eq9SQgZdPEegIMl18R3IOiuLogL1jHlrY0tiGEvqWAm\r\nHeiq2kg3Pt0sx9oBQ15dLKhFt9Q6xR8A+8YA3aa8R3d/SvQAs7uKQXrWdfEe\r\n/JXTMW1xQBeGVjZVw4rK9AaTKLxhrvKB20pjLqezqckXZ+JGq5V6xlshzE6t\r\nNHWtdmsv2aSieW4NyIBCgMAMmi4RoRm0qEZkCIqZRJatVOlrjzZ6rtU1N/r5\r\nkRnv9j+NRLux0uvhRkaD9x9sDCSkBCbmnhYHEkk4E9clwN10UDhj9sPoupXW\r\nYplyWeZK4MptOWT1cA+pxrcvL3IiN361kzqhih9VTtLT9tjJjXo35PVp6hvN\r\naxeYyw3ZWuGVMBcMHnvo3kzPnoXRDFeRpU8=\r\n=wR0l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.6_1653490459132_0.7346498615748565"},"_hasShrinkwrap":false},"4.0.7-0":{"name":"strapi-plugin-passwordless","version":"4.0.7-0","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"readmeFilename":"README.md","readme":"> # 🇺🇦 UKRAINE NEEDS YOUR HELP NOW!\n>\n> I'm the creator of this project and I'm Ukrainian.\n>\n> **My country, Ukraine, [is being invaded by the Russian Federation, right now](https://www.bbc.com/news/world-europe-60504334)**. I've fled Kyiv and now I'm safe with my family in the western part of Ukraine. At least for now.\n> Russia is hitting target all over my country by ballistic missiles.\n>\n> **Please, save me and help to save my country!**\n>\n> Ukrainian National Bank opened [an account to Raise Funds for Ukraine’s Armed Forces](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi):\n>\n> ```\n> SWIFT Code NBU: NBUA UA UX\n> JP MORGAN CHASE BANK, New York\n> SWIFT Code: CHASUS33\n> Account: 400807238\n> 383 Madison Avenue, New York, NY 10179, USA\n> IBAN: UA843000010000000047330992708\n> ```\n>\n> You can also donate to [charity supporting Ukrainian army](https://savelife.in.ua/en/donate/).\n>\n> **THANK YOU!**\n\n<p>\n  <img width=\"80\" src=\"https://github.com/kucherenko/strapi-plugin-passwordless/blob/main/logo.png?raw=true\">\n</p>\n\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](https://github.com/kucherenko/strapi-plugin-passwordless/raw/main/screenshot-v4.png?raw=true)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /api/passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.7-0","dist":{"shasum":"05e1eb46bedadcc5cd14486ae104c823374455e5","integrity":"sha512-ocjVbSqSvJxwBzoCktw7J20ri3mrR2OI1ClP+R4LIpw8as5ED+gWi50Bywjr8Oz/jgZBiJv07dmwBicFwfYb+w==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.7-0.tgz","fileCount":83,"unpackedSize":45903,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5wtN/vqjgxbStgX5N0EKHdMyJGjAwNX7Ihgz/vs40NAiBC+ugei6tAsAzvEfaYZlgEAFEQTk/obiCGNzI9FMycVw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijy9PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Wg/9HJG80gffp05OthNVeU/SV82JEU1O+X11kCzMw9lZu87Kq4cg\r\nwwtE9WK6DBxyhz2aQz7yZyW4zUCi1nwl50TsNer+v79kdjopKtgyPHJZZ0Nc\r\nJtHQ144U6qQLCCTBryrn64zwDaxrnJcq5f2FH1PZhz90PGi8shUDSLz+NvV+\r\npiazPIWOWV1zQBK86CHksXwjAfwW44/GtR5QT6iDOuzVfwg0AjMh5QryyRw6\r\n45pywbFJUF5iT9u1IDaZGHm5E9mq/TxET1c9+rogY+kzmyp6CZC7iPdtdWoY\r\nKx7YSiKWx+545jEM/TOLMXyE8sXVa5rQqZMS2xf4kIYcPmeipHDJ+OvYDL9O\r\nDbFp6sQOLMgqkRDNlRrVt9HhxI7mi5t90L3IprWl29CR9difm0bb/lG1TcFF\r\nec7F9nnZ9aKOt5ISWKVpJaMRS0fQh5AdZ/4BZzAhy8HwYz+o/+QnuMpAo2cF\r\nRmPDuyS4S+x2YbfznY8XQ54VXZo/LpyjkO786x6+u0sohX5CCZcJNCNIKZK3\r\nNwB/LC4CArMOzqqs0pXvfU6kPk57SNT+jAG1wfPN68/UoqEdZzcV9rMzxIRG\r\ntcpV1RcfxjFEAV/Y6F5wFJf5SfthjMPkw2LoA+8/cZeKYj3+88e9WxUaX2VB\r\nK6aaRfXi4vEoM7dO7mHBkdE4gDeFamCtsco=\r\n=z6aH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.7-0_1653550927279_0.3296665294301724"},"_hasShrinkwrap":false},"4.0.7":{"name":"strapi-plugin-passwordless","version":"4.0.7","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.7","dist":{"shasum":"2609205b22daa3e2ea0b9391eb7816e4262c4762","integrity":"sha512-Ar5FB0Ezr24hR0eesY0f+vfg7os7Q9t8b4DzjgYBRyzRVYTHmtRpcOLUYF4cvDvWQ0DK9wVTy3VflZqx4OI12A==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.7.tgz","fileCount":83,"unpackedSize":45901,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBzDQsZZS0xfT+e1WK9gltyaRQaZRecUwWYU0jLlj4udAiA+QYNUcvM5WJqDmiwM9jHTtZpQqSTvzMF0XKDCVZjiiQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijzqWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWIBAAj9U1wdM+ughn4rX9AImsM4ENBI5wEYtr10VgX1fNuBTNoEnk\r\n1zM1S8kcUmO6/Cq6cdxbv52LZfNHYwgYm5DacB8TJGafanTLtS44S0toGs2o\r\neiqmJJA1mYIrHWHn4x2PGuAFgYEGeN11o+rjwK3Gd9lOh4eabHyzqn8C5uyF\r\nI+SDV0YQ9lxJrkS5UK3WKRIHDpqxHP7qjt145JKjEsQLTud/LVSpTdAG4Fqj\r\njvBq3y2Lse/A9ZNsRcVGxJCaK893zUQX5J3bWv7GcONz58JdRg25wmZRDrWM\r\nM7HB02NAJflBpiUaMT7BB0KQiqKStr33EvmpBwt1oRLIJ3FUtamEnCcwe/7h\r\nL8n4T8M4UnYqVh8dXcJu5CmBmpwT+DQIqK9ikmM+8FZFxJ6/E82NatDLOpVJ\r\nLuSquaejbLBqBxGZkuvfGJMuEAEV6VbAdSdyMwl/3oZXLPHMfvzsRSNyn4u9\r\nVHvMC8XYj9uQdM5HiHh7s8zaTxlNiohSfGjROFcIU0jqJg+DzMjwmA3YDVi9\r\niFJp8j+OUM9dxMmr7a1xxG9o2NrSgWbZIYo1LIFSfbNl7b7tJznAe589hZXB\r\n2Okkr8L/paFqeQfYtbjNLqcHNMPN7QcMcCqG+JoQbxFSpRRfy1TCAfx3PvFU\r\nlN71DuFo2x/jR9paBYJnbnkNe3l9jkbWQZw=\r\n=ZOTu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.7_1653553813943_0.3385060931721715"},"_hasShrinkwrap":false},"4.0.8-0":{"name":"strapi-plugin-passwordless","version":"4.0.8-0","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"readmeFilename":"README.md","readme":"> # 🇺🇦 UKRAINE NEEDS YOUR HELP NOW!\n>\n> I'm the creator of this project and I'm Ukrainian.\n>\n> **My country, Ukraine, [is being invaded by the Russian Federation, right now](https://www.bbc.com/news/world-europe-60504334)**. I've fled Kyiv and now I'm safe with my family in the western part of Ukraine. At least for now.\n> Russia is hitting target all over my country by ballistic missiles.\n>\n> **Please, save me and help to save my country!**\n>\n> Ukrainian National Bank opened [an account to Raise Funds for Ukraine’s Armed Forces](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi):\n>\n> ```\n> SWIFT Code NBU: NBUA UA UX\n> JP MORGAN CHASE BANK, New York\n> SWIFT Code: CHASUS33\n> Account: 400807238\n> 383 Madison Avenue, New York, NY 10179, USA\n> IBAN: UA843000010000000047330992708\n> ```\n>\n> You can also donate to [charity supporting Ukrainian army](https://savelife.in.ua/en/donate/).\n>\n> **THANK YOU!**\n\n<p>\n  <img width=\"80\" src=\"https://github.com/kucherenko/strapi-plugin-passwordless/blob/main/logo.png?raw=true\">\n</p>\n\n# Strapi PasswordLess Plugin\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](https://github.com/kucherenko/strapi-plugin-passwordless/raw/main/screenshot-v4.png?raw=true)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /api/passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.8-0","dist":{"shasum":"bb6ba97dd021d57b75b8a7db6144924fb9e0e1ff","integrity":"sha512-ju0d065lOEooxO+bqolcXvV3ZXQpPNVPKBKQufbvFAVVuWHyHkEoo7v3Mo89zBjgshBs+FSwgl7wlhUNG1iUQQ==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.8-0.tgz","fileCount":83,"unpackedSize":45927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVKmm+C2R6fDEfL1/zX/P8ftdP1ZQYN+YUy8Wd9jn0OgIhAIcuTZB3Gg2tIOnC2+j5mOnYQldtki2eOG7I2dflPkZO"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivEbLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjEQ//TNnIzDG4Szrfmo49bc5w69rhQeufi6f0869+eBo7PkQifMkk\r\n1bu+ErNt1zHLL/iLeWPB9EYnvqByOpwBj4ZlQreMrL/7bh1XPqfxUuVWEtkn\r\n0oD9Q4BD7GMils+lsoYFFhtv76DzyapqnWneMcypxNLmHcsjBmh73Od1QM96\r\nPSD+4eUVBcJmOMf1r8+wTpe5OZ8ejAdX/K3jVTsaXMDesveEJ1rB6rCv3A2B\r\nb8qF91pB8YA/YKatKfvw4yzX3cHZPZMBRgEsZNoew1rOcJsOi5ZtnjEVesGh\r\nIorw21USKNSKW5WQVZadN+eLMW4qnGmhlPXbpJerB75KLiEm8+6PGjwx2lkl\r\nKmKF211Xp5BK2Rv5AqzfyW1umcL1854rH3Xs2yhQWyk9Q+zLUfM+WLwwX+SY\r\npiHQh45JI6YlwLnh2GLpISZEYYUqRHPMMSFIyPbNtpFld7nLwMCRHOIZfN7a\r\n0rkD1+rcNwVwh+Ya0F0hdtSY0/hYVXyRRkxodj74Oi6I4vKuIQolOG0754Ht\r\nu+JGvbEZ2pqc1do5++vDpvatGpbCibxySc/suYfqp6fvuD4xV7vGNV9lRivH\r\nhUWDg7wnS0XDlYTTyv6zLIJXZwjShZ4vnq+wydHlH9016r9NX4V6WlDMZGnP\r\nxyRHLPQbc0Xn22bE/W/8pnMisAsOwny/HsI=\r\n=2J+l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.8-0_1656506059279_0.2967125813262297"},"_hasShrinkwrap":false},"4.0.8":{"name":"strapi-plugin-passwordless","version":"4.0.8","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.8","dist":{"shasum":"36c2d484243b65788907e251c153258ae2325312","integrity":"sha512-irqUK/hsXNBGCRobfzsBWc6kXS17esx5CO1Jpf3TuOZmqe0TYsu/W4Wd8p7QXYFqnz+XAMKb49ISjViSgFazaw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.8.tgz","fileCount":83,"unpackedSize":45925,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGW17ZhqwKk5oC0EdVh71pSpTVVR8A8HUBYtijpIEu+HAiEAsLbjrXGiUPMPWB+MLEgcVR0Gzc3p7yxXZ/UH+cKiLwk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivFJlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpllQ//ZRtMQplDIQwSJXW/Hnoq4xOFSMW+F1DX9dwL6/iWrvZ3MA6s\r\nKFgRMa3HsCBnDeOFYZLVESO22sHRepffLkRlWYIeVwptwqhvFvQiqmnSJXW7\r\ngcgdo4BNhhpeZCUD7Ng3cmrcXqgjtN6oGEMXH5uKX36yakSjiuvWFs/Cyxm/\r\nfaZne5/gxRQ1gkSHKRqVUAxw48bOoYENrdN3ZHj7AXETa2zcZ5REnb34Ab1O\r\nZQJDAhzJQM/qS0QB7/G1pFg2hmozzieS3ZDLKsLWjuwd5UrXEb684lymbKS3\r\ntjpR9+nvvNBfkxLtU9sRSPTseHqYrVWcFyk+by+C0h9N76RwBIgPQgigGGdE\r\nEA9jeEPVobFLutuPrVqJFrVo3liXHPdWc9taAY8lYHqVgZgiO/M0IBlsw0aJ\r\nJpWHMTkVCORcGthz+uUot/eFxW+rv0ti9dGqt8TAlz5ZpCr8IoU3XzbT16NE\r\nBIwmhsUClMh9gV6OCPwVmwbiAUEEsgEsmKcSqfErRgyZnWecax5qdMpdO3gb\r\n4nS2X7tDSkxukfD5IKQCOtf75eVkOmaQ+L6DRXh0ijchiESrsXt/F5JHk50H\r\nR+UhhBKdBZPu0R5MZ6k+HeR4/xX+/NjoWkmoluZaipk9Og3HFuhzfqbJfOre\r\nZod1nlaCQaZv43pWw5K2UAjTr4jmYSBKKEE=\r\n=wQE/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.8_1656509028986_0.12313530538343698"},"_hasShrinkwrap":false},"4.0.9":{"name":"strapi-plugin-passwordless","version":"4.0.9","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"gitHead":"84fc7f0fed7d0b30ebba1cd4de28ca54f92f8806","_id":"strapi-plugin-passwordless@4.0.9","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-DE6uAP0p5GT5ccUwo0yyempAZm00VbDOP1vL2VVyBmK/zb0+XMFbQ31PkO2LDS8MmiAO2j/FSbE3moyq7IQCjw==","shasum":"889430b2472b2ac08ebaada9d1c2754523102cb5","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.9.tgz","fileCount":63,"unpackedSize":46052,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEA+ILrf6dwA/sw9U84NZrAUYjyJuRoHeZezEng/WzfAiAXEJE9yMqg0OiUq2sdVWD7tom9OBNuTLLmUAY4n/tnjQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGxYuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqp4xAAofgKSeWzZGr5IXBxGXcuGlf4EJ4EBIIcGaaTX1KN5g48dQqA\r\nFPC0s2X/5YFLR97PSgfTLBRJ5tEthgkmm/0V5hO08VVJvA3TQkqxAmn5fd2q\r\n32NnoChRGQkFFUvm3cgqEeqlSFVbbr86TDSJnjoC0ZrYU83RUFjTanN/W332\r\nl+hIWF2HJgqEZJPP4+Um4+4WBigDbekdXa597pV49w133hmWtyUmAahc2B3/\r\nj75IwD0X4j6np//6vShmzGvsQNC9kHCU+YGIp68a1dOys5L6onb+el/TOjLY\r\nT7qn8yLpx0PAYBUB10YfwhDTf13WsWptgVt1FkxcPl2ja89O+fCni+n4tYqY\r\nlZRhBdT28bzqbJCFbYR3VJB0tn76ZXC+ybU11L09IZNsE1z8GEbZXuZZvANw\r\nf7IPbwqjm6CxiHnnSP1Md0J08SE21W2msZqvV0/y4zytcMa/nwITP/2w0iuW\r\n3LKSbyptNhd73/6kHZEL6Ad2a+YSC/L0FPgnE3lU+PeJE06mO4Tv9p8wqywf\r\n2Ayllq2E11qW26gLRaHuKdZ7Mby4tuVZwHZpeXCtolipbP8IKfDtoTfCGls3\r\nYeMVlDgB9sQzrh2Fxcg0yrQVzmNOmDU4ol8CpoaPNq8qwF2NtxabKSBnPHb/\r\na2OAjBtgPWGvCnKOLeGqhwKs7zFUN0V0zZk=\r\n=CPca\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.9_1679496750717_0.8392171268439343"},"_hasShrinkwrap":false},"4.0.10":{"name":"strapi-plugin-passwordless","version":"4.0.10","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.10","dist":{"shasum":"11874f7f8d8f11ca1dbd7a982baf7529c849e6f6","integrity":"sha512-0u3RUMBKWkC2DXFRg9xS7XTgDGJuehSewqrTFSKQo11VNxRE8a65SLz6dPZzc9yRPD88yfmijM4+YosUVkf3hQ==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.10.tgz","fileCount":88,"unpackedSize":47197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGkY5RgNlKY1kk6kqM45ZtvVHkZwduCnkkIklynkrvZgIgW0O0FBIGzkqMCbSeavl/T2i6iXhC6W1rADBjgxGMEEw="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.10_1684777330655_0.2871287607755588"},"_hasShrinkwrap":false},"4.0.11":{"name":"strapi-plugin-passwordless","version":"4.0.11","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"gitHead":"648602b9429adde40b7df7c4a2518301a8e1e651","_id":"strapi-plugin-passwordless@4.0.11","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-NdefpQ+2eo8r3KnDHryOCAXGn4sCYz5pjyJv7OyDVwc1DJ9dTxRPJWMQAOpmUALQkVTVShtX3XEbP6Dp7nmtPA==","shasum":"9dd952c7dba89e882f8d957e75b3d3715776bcd4","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.11.tgz","fileCount":66,"unpackedSize":46840,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4N81Kfx/2odQNaXACdXqwbh7qaPq18trqHM4fxbBWyAiEAw9Ublpt5NVwmDM5xV9l5tM0VpSI2ut72tXQl9ZALDAQ="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.11_1684858181900_0.7129026397618872"},"_hasShrinkwrap":false},"4.0.12":{"name":"strapi-plugin-passwordless","version":"4.0.12","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"gitHead":"364ffde0ff800590640c3fad002acc24c03bb50c","_id":"strapi-plugin-passwordless@4.0.12","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-phs49ynrGWLCu/8ddRqpMMBcjzWqwDQYwX0Frlgpgz3tC2YJ21eaoa4qHEG/GmZbYWnIIrXxnqQ3WZn0oC2uSQ==","shasum":"a94ae1cc3c42b4faadc53d4ae0bcd13b19ce40ac","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.12.tgz","fileCount":66,"unpackedSize":46704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpqYkN5NkibMBJ9wtrpCUtOcfHow1r/Zngjom++cIZ7AiEA+ET3KFFORIg9FTlFksHO55BDVmcWu1QpfE4OjdBOg0U="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.12_1684916339025_0.8773629133188676"},"_hasShrinkwrap":false},"4.0.13":{"name":"strapi-plugin-passwordless","version":"4.0.13","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.13","dist":{"shasum":"735ab0240b81b039e652c9a2a6a202a010dd22a1","integrity":"sha512-lWZwRqbwcHBjBO/MSkPluECfHCiCzKEM2csAI657LV9M5jB0JGOZn3mk91JjD0yo+qfz5ZpG2RMFfJbTv0Ikiw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.13.tgz","fileCount":88,"unpackedSize":46758,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHnc6UvD0FBGxLbgW4cNzQicbzF+D3RafdL8uEr0E2OsAiEAjXd33RMWliPqtlsRb0OgqBmFEnzidUEtizTcLww90Ys="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.13_1691836696917_0.9552264778360271"},"_hasShrinkwrap":false},"4.0.14":{"name":"strapi-plugin-passwordless","version":"4.0.14","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.14","dist":{"shasum":"40e6e75924d8a793b31705fb84a53051f2fdb3a8","integrity":"sha512-dKvOoO4caN/kIHC+jkyuGuCP5bToyDHUr8p1sa266U80Bjimo8YktYLaPzJyOzX8oF64atW9S7qlbd9NskYMRw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.14.tgz","fileCount":88,"unpackedSize":47593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2Mz+Gv8TkPg3wLJ3HQB9Y03b0OBOd9Bkh4RKMFv9LFAiA+1uVQ968FbX9hg+0sMr2NRDWY1ot7PKcFsuRGQl8kFg=="}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.14_1696329797063_0.6675319157749453"},"_hasShrinkwrap":false},"4.0.15":{"name":"strapi-plugin-passwordless","version":"4.0.15","description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","strapi":{"displayName":"Passwordless","kind":"plugin","name":"passwordless","icon":"key","description":"Enables a secure and seamless emailed link authentication experience."},"keywords":["strapi","plugin","passwordless","login","authentification"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"engines":{"node":">=10.16.0","npm":">=6.0.0"},"homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","license":"MIT","devDependencies":{"cz-conventional-changelog":"3.3.0","jest":"^27.5.1"},"peerDependencies":{"@strapi/strapi":"^4.x"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"test":"jest"},"dependencies":{"nanoid":"^3.3.4"},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrey Kucherenko\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":"strapi-plugin-passwordless@4.0.15","dist":{"shasum":"4f0fa2f235c877c5803a2cca484249b582534358","integrity":"sha512-F05NvDVsjkCCUAh+4X1I82y/e+2KX0unJ+jva1bYDGr2ldjrNY06ayFQHMNJ49gK8yCgRDJTxuH+0rZnFhgsvw==","tarball":"https://registry.npmjs.org/strapi-plugin-passwordless/-/strapi-plugin-passwordless-4.0.15.tgz","fileCount":88,"unpackedSize":47444,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHkrxP1EXk6+tTAXXyqi562Iod5Fp9AXftPqCvFocpbwIhAL5cegIXywA5RlpuKfn7VGSd3C5gf7pJsaE+fiMBfPWw"}]},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-passwordless_4.0.15_1702549140282_0.06427222095832841"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-03T22:07:38.204Z","3.0.1":"2022-01-03T22:07:38.429Z","modified":"2023-12-14T10:19:00.586Z","4.0.0-0":"2022-01-10T16:18:19.443Z","4.0.0-1":"2022-01-10T17:14:34.061Z","4.0.0":"2022-01-10T18:34:37.174Z","4.0.1":"2022-02-03T10:50:17.261Z","4.0.2-0":"2022-02-09T18:14:27.374Z","4.0.2-1":"2022-02-09T18:58:06.381Z","4.0.2-2":"2022-02-09T19:08:22.994Z","4.0.2":"2022-02-09T19:12:37.093Z","4.0.3":"2022-02-09T21:01:20.220Z","4.0.4-0":"2022-02-19T12:50:45.103Z","4.0.4":"2022-02-19T13:09:06.609Z","4.0.5":"2022-02-19T13:22:16.571Z","4.0.6-0":"2022-05-25T11:36:41.283Z","4.0.6-1":"2022-05-25T13:58:10.742Z","4.0.6":"2022-05-25T14:54:19.375Z","4.0.7-0":"2022-05-26T07:42:07.429Z","4.0.7":"2022-05-26T08:30:14.099Z","4.0.8-0":"2022-06-29T12:34:19.431Z","4.0.8":"2022-06-29T13:23:49.146Z","4.0.9":"2023-03-22T14:52:30.882Z","4.0.10":"2023-05-22T17:42:17.298Z","4.0.11":"2023-05-23T16:09:42.130Z","4.0.12":"2023-05-24T08:18:59.232Z","4.0.13":"2023-08-12T10:38:17.118Z","4.0.14":"2023-10-03T10:43:17.311Z","4.0.15":"2023-12-14T10:19:00.433Z"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"description":"A plugin for Strapi Headless CMS that provides ability to sign-in/sign-up to an application by link had sent to email.","author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com","url":"https://github.com/kucherenko"},"license":"MIT","readme":"![stand with Ukraine](https://badgen.net/badge/support/UKRAINE/?color=0057B8&labelColor=FFD700)\n\n<p>\n  <img width=\"80\" src=\"https://github.com/kucherenko/strapi-plugin-passwordless/blob/main/logo.png?raw=true\">\n</p>\n\n# Strapi PasswordLess Plugin \n\n[![The plugin verified by Strapi](./verified.svg) The plugin verified by Strapi](https://market.strapi.io/plugins/strapi-plugin-passwordless) \n\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides ability to sign-in/sign-up to an application by link had sent to email. \nA plugin works together with [Strapi User Permissions Plugin](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions) and extends it functionality. \nFor working with emails a plugin use [Strapi Email Plugin](https://docs.strapi.io/developer-docs/latest/plugins/email.html).\n\n![Screenshot](https://github.com/kucherenko/strapi-plugin-passwordless/raw/main/screenshot-v4.png?raw=true)\n\n## ⏳ Installation\n\nInstall Strapi with this **Quickstart** command to create a Strapi project instantly:\n\n- (Use **yarn** to install the Strapi project (recommended). [Install yarn with these docs](https://yarnpkg.com/lang/en/docs/install/).)\n\n```bash\n# with yarn\nyarn create strapi-app my-project --quickstart\n\n# with npm/npx\nnpx create-strapi-app my-project --quickstart\n```\n\n\n- Configure the `Strapi email` plugin ( [official documentation](https://docs.strapi.io/developer-docs/latest/plugins/email.html) )\n\n- Add the `strapi-plugin-passwordless` plugin\n\n```bash\nyarn add strapi-plugin-passwordless@latest\n\n# or\n\nnpm i -S strapi-plugin-passwordless@latest\n```\n\n- After successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\nyarn build && yarn develop\n\n# or\n\nnpm run build && npm run develop\n```\n\n- or just run Strapi in the development mode with `--watch-admin` option:\n\n```bash\nyarn develop --watch-admin\n\n#or\n\nnpm run develop --watch-admin\n```\n\nThe **Passwordless** plugin should appear in the **Plugins** section of Strapi sidebar after you run app again.\n\n## 🔌 Usage\n\n### REST API\n#### Email user with login link\n```\nPOST /api/passwordless/send-link\n{\n  \"email\": \"user@email.com\"\n  \"username\": \"John Bull\" // username for new user\n  \"context\": { \n    // context of authentification, optional parameter e.g. \"currentUrl\": \"...my page...\"\n    ...\n  }  \n}\n```\n\nSend mail to user by username\n```\nPOST /api/passwordless/send-link \n{\n  \"username\": \"John Bull\"\n}\n```\n\n#### Login with token\n```\nGET /api/passwordless/login?loginToken={tokenFromEmail}\n```\nResponse:\n```\n{\n  \"jwt\":  \"...jwt auth token...\"\n  \"user\": {\n    ...strapi user...\n  },\n  \"context\": {\n    ... context, provided to sendlink, e.g. currentPage, sessionId etc.\n  }\n}\n```\n\n### GraphQL API\n\nWIP\n\n## 🙌 Versions \n\n- `strapi-plugin-passwordless@4.x` - version for strapi v4\n- `strapi-plugin-passwordless@3.x` - version for strapi v3 ([dev branch](https://github.com/kucherenko/strapi-plugin-passwordless/tree/v3)) \n\n\n## 🤝 Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## ⭐️ Show your support\n\nGive a star if this project helped you.\n\n## License\n\n[MIT License](LICENSE) Copyright (c) [Andrey Kucherenko](https://github.com/kucherenko).\n","readmeFilename":"README.md","homepage":"https://github.com/kucherenko/strapi-plugin-passwordless","keywords":["strapi","plugin","passwordless","login","authentification"]}