{"_id":"@bwyx/strapi-jwt-cookies","_rev":"6-bc2bd75660f51051e3b86f9532347575","name":"@bwyx/strapi-jwt-cookies","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.1","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"4.1.12"},"gitHead":"b6c66e995fcb5d5c3ab17ad48ea61f8084f101df","_id":"@bwyx/strapi-jwt-cookies@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-BWYNSvpkhltp9y4CGeIkJbyYQ16BQz8QjCOjqCQc13cfEP9bCwnrFA+2tWqhBj7vtaf7ZWP9GvGzHbZwEd9D5A==","shasum":"18ffd0ad98be30e85ec9f6978950db8518ed2881","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.1.tgz","fileCount":5,"unpackedSize":3474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxqHoDhCVY0qQvhedkWRQ8zS8ZTjAVYVLi77XvYh+xgAiBCAP9lSlX3pasTfa2++gHT1C76/z50x2k0ODMEym9R8g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilQXuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBxg//TKXPNsoms7Wmdkxm+IKjsIHbptCkm4p4ZcUz5it24wcClUbI\r\nOK40LtcliLJdL9+l/ve8174gc4guiysTHl7eGPzylGIqCW2CM1/zHD5IRF+B\r\n9E/VZu1nXm3Dy/eFoSqvk2Mi+QDVxphlWFU2OgSIvgd3KINmDc90PL2aZ3ar\r\nDLhqENNxH4QGSBmIFaF5TWjd3c8hvpWG+uNAZYwWWvcBevTdc3JIL8RfwS6r\r\n8xw96w+XJgVrB0vcgSeqR1UPHS4E+igC16Oicycsp81nbDEoVthYBTtU3L/B\r\nXHOvK2ymx+lvDkPQUxFL3xtGlWxG3KZNscK/6e5d+h4DyA0oMmyqwJXel203\r\ne1+FH4CloWHccuXUx+Jzwx0T8mnR3S/mk9nA+USqwXckmU/8YKMo/uoJU2Ym\r\n0NC0pZEmHI9OVbXymTns0chh6Sdu7512H5Bv3d7fYfvKUwtekc/4JdRRXyvt\r\nhy+CvUUA17kSReKlWTohVqv0vyQX73QlLhNPI4vqCK1LEpXJ1n+VxujiVS9X\r\nR40aMTWGJenR1r7Gs15KctljKtMxXZrogQrtb8pnuxPYNmk3mXXh/NxSnAvG\r\nEKj8HAIlQE8/rS7CssmripRyZDOkO67zhfkV3QGvEPU3cw5TWRtzDLy2Zmwe\r\nJuSXcJN9y7NmBDXI5c2jePn+zc8tOUFy658=\r\n=sZOq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.1_1653933549893_0.5723886727299741"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.2","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"4.1.12"},"gitHead":"1856eb35b4c8d61414b17f2c51d7a37f5a9be196","_id":"@bwyx/strapi-jwt-cookies@0.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-LX5ERUFwrXq/kyVxThGRAgyzuLalEyrLVScqIVqcIUXMoeJFRX4NRJBwChquAZ+2dHF8UTf/W0mmSib8NBwBKg==","shasum":"1e19d9fdab94e87d7caf0e9d00f3b6ed89f14f0b","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.2.tgz","fileCount":6,"unpackedSize":4542,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCijOdIVqdADKKimpKLZnfYMh4ihzL7re5c3+obYMZMMQIgUvII2Jd/+/gg9SJJS545vxcwTb2lt/qo2l2VLzRqJ0M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilaieACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUrQ//S8bJ6aNrf5dNUmxJmDoBzZ2E+ltckE666dDfQQMvEEgVzz/f\r\ndHzVW28QI4TLC7d2QmE+4ByZ5dAMCBZMEbjO3fJ4FjXLV/sU6WlkMNyPh0Ws\r\nk8p/85LT2owAC3gdHXQMhn48nJquidO1/i89FpuVxLxIpcg3h5TM78ZNoI0/\r\n4DTGPrg3x14MyeFMH9pV/bE/hi+fyENMmpJL1L60d3Kzaj82MIs/LgwiAQID\r\nh/Un7tV2gxBaGgwHz/5ktAEcME3/KEbVtWpPXN99L9BWWWaGsKs3WNEfcYEU\r\nfvF4Y9GfxwxBs/3d084Dv6H1U3isG4duUv2qNKBhFLdgm6JjNMNh2UIs6Gpv\r\nRn8iXQhcYK2k83ecwiQOEU/j8gwxhx2Q7fk6xSNq3zsl8qSfuyGnb5NFclh9\r\nIZRO//c3a9yf0G+MDR09ci+ZFdlJGz8TnlJEdd/hN6rlMHk1Zc0lvhbnOOyt\r\n95+107W8phsZ+bZ8k5yj/yMOYWasRjxkPOc8TWwz+b4RB/8HlEzU+rTQRDfo\r\nQoHzgHVeanpSFtg37jv6B7hxMA15P8aL/C6yrRhQOmI2FIhswEOM3I2bDdQW\r\n84igS8u+y8vPVX4ddpP6uLoEp8Ow4cfYUji0gy2MI/WMOc7RDhzvqFss+HfH\r\nRxOA9FSF7SoZujHYiIfpEyJUkDNjbdZyr6o=\r\n=aMDw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.2_1653975198099_0.2983543563739053"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.3","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"4.1.12"},"gitHead":"7c3984e84f4202904e435e9db92178d03b5ca29d","_id":"@bwyx/strapi-jwt-cookies@0.0.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-d3OBNWfBh9gQBmCH/P4WKhutL4ZanrVtoriffwt7xH2yRgOn4FU+1BezrMuPLm6UjKX/i8gdYeZlDXQG18KWVA==","shasum":"ae21bba1faeb8c90808c5aaa1dd76e2b12174740","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.3.tgz","fileCount":6,"unpackedSize":4403,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICy48Vhsjm0nGAdkBo5vQNTfPIOlo8kIAIq1f0PLXv7hAiBjSUGXVzqtswuPVd31Fq31L9iJRQNgXdasOK8ZkspQ6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilbIEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKsw//YjgGUdaOikfhkkzmREXBiUhvk23XFr9u/X2rveb9XmZJyThf\r\nHAIvAPTNLxlYxgryFba3aaBQ7aJ5nOjMVEWpcE/1QqAjlD+OLnhWxKdInBys\r\n1L1EwTpNONXvr9k3nQ5RiFuZkbrU3Pe0AXRaXpLF4yFRndmePCpKciDfEZhD\r\nkbraKvOaZtXlFQvmHoofPrEQjY2VtndI7FizFzCE+MbM6L2z0EFENqR/KPDW\r\nFqD7kwg2C8LkRJdKWMoT+6Act6SWLtip8p+wcovedU1EfGqdW2cvFuPrSIQE\r\nM59Rd94qiuLl+gIxAuQFh92yCBCm9XPVmXN9CrXWg0ojd/ELECSEisdbpWNi\r\nl8sEKZu0A+MWGWtrzhMGlxQVZ3ETl6n2vimuJdEmQwJnNjVwrxd3r29so6ym\r\nrl5+8pH6qiueyY+5jgDUggc7/6Rw4KJFyuufJ3e29MynSni7y5fWR1592n2L\r\nJTgg19bAc8eyrxoIwR2p+FRreDY0idpOsxD9Sa4VAmMMbSsadw9X8N4QfwhS\r\nYzmiWMyh1DmTEBdediLbqyzRfZZu942GG5ngHQPwrWgWWHd/bxhwNz8jBLfh\r\ncCZvtL94PDLEmfjuuyp3vX3REX9GFHStdvusRhF72ScSzkpRdgcb0hJldRuF\r\nNvOzCaS65ipWyEe2RFs9PvSY/uroM2u+fxQ=\r\n=6d11\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.3_1653977604452_0.4240275416574013"},"_hasShrinkwrap":false},"0.0.4":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.4","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"^4.1.12"},"gitHead":"0895bf24484e5ee02d76f0e62aa11307f05c53ed","_id":"@bwyx/strapi-jwt-cookies@0.0.4","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-quE727Ea6h5/egpvRbQpfO+X+a83xh+9NasF9bX95K6I8g2b84N9wsRekxjaDwylCaLPXa3YwokruWksnRJ3xg==","shasum":"d1b866940d8ba24c95fa71c08677294b7e568eeb","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.4.tgz","fileCount":7,"unpackedSize":8394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPMsAhJAcEabzcYvMk0KG+sQbPWBduyErZUeyYJMs/wAiEAitWwErU7eWSpreC9O/q5aZjeHG394bWGuqPKFcbjqgM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimBmlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoiUxAAoQ5uERJqPtBGJtCyi/5poHP9D80cVLD+VecAXgf4KIy77B/P\r\nu+JPA06t6pW9CmM5I/f4tJooMDgXeRw9uegPKEAC7zW2vBuCEZdg7S3ZuGNh\r\nwiN2YKFq1IPVnCN5UN10DgIK6diLnSWY+qDUr5RVQUAesvXiPxtLqyc2Wzbp\r\nrKv7+zVftcUnRCuTEx9YtowCo7VIGLM0kXlvHgyUF2PldVoz/S6zEJDuqxAL\r\nFsDcz4X783GQYdb3ZsoHoRiKVSKrc5piQSRfJ0WXbuiyurLycM2nJtL3QoKz\r\nr+gExMK/fQ8H7mUEnc0k3gGNW++M3/40cHWvXFZ4MumrqUEArHe9RLxOFPNw\r\nk09eXgAXK+/cpSlzzmPPTFKrHkTSswOXM5dkhtUxiSbVI2EzBQpF5WoQoa37\r\n/f6F7mdXLIWiqde4xsuE5Kz9Ek0pl9OJn5APi6KmTsO2Y+GjRygR30AYDvvY\r\nUJ6VYkNE3Wyir44f6u/nQ6mc7f3Eb5OvAL9I420vjNfNKHVRLvsnsLqrKAJP\r\n6sRSfRqX6xODEMcs49Pma3Jy2vVKkZ8TXybrJyRzsLHJwknlvQ0BLIyDh9kE\r\nyaHKw8/RFCOwfbjkI5A67LzvA5TWw5KFwNvQ8L87nUPDmozuJxeOku8oQHPp\r\ngl03STmpU/E3/UAKvnHQiZuMm+wg6mcPTFQ=\r\n=ViXt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.4_1654135205677_0.3606493473893253"},"_hasShrinkwrap":false},"0.0.5":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.5","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"^4.1.12"},"gitHead":"00c7c4591f86e67f510f0d81df4ce3a25286e6b2","_id":"@bwyx/strapi-jwt-cookies@0.0.5","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-+TmThKjzISioUKVOw8XpgXGjPm7Uf2PuDldFWpQnTRumiQmy0fF9l8j7PP7mBzBd619esnqXrNE2UQJGpgWDKg==","shasum":"01301ba24bcc068348978e5969fc57c3cd3e3323","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.5.tgz","fileCount":7,"unpackedSize":9174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuWjrkPPAKyKHh4a6qPvcpgV2eD+5MPEvPe19gDelfLAiEAyPW6H1uyq7EdV/z0chflM7LaYDJ7u2JBdE95yvzftiY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimDcdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxeQ//WuxXjFziHNAwvkYeOH1xnPhSYTw3bNJgoy0LgdUyhEU+WpiL\r\n1Qxiq8xYp5G5p1b3ZVh5LbMuRp5Kne6j6j6skgxE1zK9C4ONAIwudWfBHR8M\r\ntyfdzkoEbulbC+ArwHbGRuP7R8LRrEKFmr7pHOD36GpVt7IDrFv+8otiq8ym\r\nhFnYrU1MjONZfIQPTQUpfOUURizZWgbxJ+yoJ2RsGl1sfEFF+ryrk7aspdA9\r\nMr8VX63uGR0BgMMBpvc0X1Pr0Jdy5Df6JNtykCkGhtiDJ/NHY+/kRftxS3bc\r\nSMHEirJnPx4lhZ+YZ1JvbzO2QI/O+Ldu/YDOb1zYpGhHIquxJeL9XW4AZHI5\r\nokm8eP9xMcc/CJYV4fhZCECq3Pq7/2bFttujv4q1m5+TTuXbs1RTUm+8UFvG\r\ndOIdQXWWP7y2IZk76a+QxWS39QaL4q9tnvjNLKzGlWVNCmbjp6SB1wbhQboQ\r\nMGuVVAzBxjoDjKFWRZzRaL2Bdzlwgkq7tTd0kCsubbmQ4RPqwF4i0kEFd/W3\r\nTbnz744SEwx4FuNaZ0DCK3jU0qd+uVRzYJwUT4evXHM/DQEUqjWGMHdO1N39\r\n0tQynUlzK9GDA/U9kZMfdunZYlioCBcnot0/dLZVY1vuqbSY+KqcMyhhrHbS\r\nsEJxSmjXr577VJKGo8wxHByxdGSwYew03Hw=\r\n=QaZw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.5_1654142749313_0.9000279772425663"},"_hasShrinkwrap":false},"0.0.6":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.6","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"^4.1.12"},"gitHead":"0aeb653e1bd86a6a6052de5612161b6c9c37509a","_id":"@bwyx/strapi-jwt-cookies@0.0.6","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-tNp1h/wDdiRl7dpXV0+5AUWy+tR0tEJNWBYmP8Z0/bNoKTwwEoXuoePc2eMKfZymMbFCNIdmdHmBEPZC7zySLQ==","shasum":"a27f6c5e6781ca1bf86e2c1e5a6c41cc0857d248","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.6.tgz","fileCount":7,"unpackedSize":9271,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQmKVZ4wrYiFs39hsTODsCtB7SCuPvK6kxWjPJg1lxLAIgMs1hoAqh6keX1UGUDsIydQ7ajUF0rzU//RL0mX9vx0o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirdKkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEAQ//dC6DI3Gn8f9kUHHsy+IJo2j5WZC4Bzzupoknl7v3bQ8vKc+L\r\n3Lr6qr7uBRHxelDb5AuxNmRSN4vfeHa2sutEBJIq5EU81l13SacY2Udj81tN\r\nuES3yd1RnVPLWleFa4kVBWR6LNGZN3Y9fOmkl0C/sPre6WzHApciu9XxMxy3\r\n4RVSYMah44pATdi34AtzhBqjPsYJuWKmqowOHHNZ+tUNlXeoL4HWRDT9YeRV\r\nEj1ILjTiyDBD/SWKrfW+nzth2Kx1WeCS6590TJk8UHuSRoV6Y9BMybcMpFQl\r\nXgBAyMhZt2gT5JW6nbtks/HjuSicyNG4mON+5qfRmPf555KqwKI9LRvt3UEK\r\no/mB4C8mZCelO2BPL+LktydnlvNBEzMQdRzLfUeeArdT/d1PZZIOUTW2kWlT\r\n5BQ1G8QhBfITOPh5+AZTgwSklGYfK+MWZPFK4ILkvQDhB0RyWTBWsENMbTCQ\r\nj2GcvSeB6pqGXdv6z2BiLr2o9ChGkMus2Q3nDsVF77gKDTjJSorzBhAsnQq2\r\nryVK4KlbMK/b0DcbNI7fabSZHx/tO4JuHd4fSRdy3lWNow3vxR0Ogyqal0kq\r\nSqRf+ZrBIqkAYEun5V74rYnqx/rxeNOFc3OBv59ZJ3795cKu+lEQQ4mKJe9m\r\nrUR59S2/4rR/xUS0rzbACOmZ0bolDuxr5K0=\r\n=GwT1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.6_1655558820751_0.6592198452315141"},"_hasShrinkwrap":false},"0.0.7":{"name":"@bwyx/strapi-jwt-cookies","version":"0.0.7","description":"Securely use Strapi JWT on cookies","main":"index.js","scripts":{"test":"echo \"No test specified\""},"author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","peerDependencies":{"@strapi/plugin-users-permissions":"^4.24.0"},"_id":"@bwyx/strapi-jwt-cookies@0.0.7","gitHead":"ef9d0c58a2b82ef93062c454bf70216f97b5b571","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-XtfhWJMAc1zPf/pr8wGgZvt5FZEfXgMADPDvIYtxVCLpqDx4XSaKzmJZTsYU49ETkdNxeSQHzc3daudEX4+7bQ==","shasum":"aae136eb10d5843ac4071515830d1e319d6cbe25","tarball":"https://registry.npmjs.org/@bwyx/strapi-jwt-cookies/-/strapi-jwt-cookies-0.0.7.tgz","fileCount":8,"unpackedSize":9443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/ZvquSZD1YmlXQyYNxvJEiyYkM16vyf3S4FjcnvLoqwIgMvCMuHjJ1MvCQ5Pf+dZkZpZ0vu4THRxxg/FOpDz/vu4="}]},"_npmUser":{"name":"bwyx","email":"hi@bayukurnia.com"},"directories":{},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-jwt-cookies_0.0.7_1714064929135_0.8417289674242425"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-30T17:59:09.824Z","0.0.1":"2022-05-30T17:59:10.041Z","modified":"2024-04-25T17:08:49.476Z","0.0.2":"2022-05-31T05:33:18.310Z","0.0.3":"2022-05-31T06:13:24.614Z","0.0.4":"2022-06-02T02:00:05.823Z","0.0.5":"2022-06-02T04:05:49.440Z","0.0.6":"2022-06-18T13:27:00.912Z","0.0.7":"2024-04-25T17:08:49.301Z"},"maintainers":[{"name":"bwyx","email":"hi@bayukurnia.com"}],"description":"Securely use Strapi JWT on cookies","author":{"name":"Bayu Kurnia","email":"hi@bayukurnia.com","url":"https://bayukurnia.com"},"license":"MIT","readme":"# Strapi JWT Cookies\n\nSecurely use [users-permissions](https://github.com/strapi/strapi/tree/master/packages/plugins/users-permissions/)'s JWT on cookies. Compatible with Strapi v4 and requires `@strapi/plugin-users-permissions@^4.1.12`\n\n[![@bwyx/strapi-jwt-cookies on npm](https://flat.badgen.net/npm/v/@bwyx/strapi-jwt-cookies?icon=npm)](https://www.npmjs.com/package/@bwyx/strapi-jwt-cookies)\n\n## How this package works\n\nThis package extends the `@strapi/plugin-users-permissions` core plugin via [Extending a plugin's interface](https://docs.strapi.io/developer-docs/latest/development/plugins-extension.html#extending-a-plugin-s-interface). It exports a higher-order function to wrap `strapi-server` customization.\n\n### What this package does to the plugin\n\n- Adds [two middlewares](https://github.com/bwyx/strapi-jwt-cookies/blob/80414f5bcd44217f2d6af6b78c22a8c4bce87067/index.js#L37) and applies the `jwtCookieSetter` middleware to [auth routes](https://github.com/bwyx/strapi-jwt-cookies/blob/80414f5bcd44217f2d6af6b78c22a8c4bce87067/index.js#L13) only, so it wont affect the other routes.\n- Adds one [route](https://github.com/bwyx/strapi-jwt-cookies/blob/80414f5bcd44217f2d6af6b78c22a8c4bce87067/index.js#L49) and [logout controller](https://github.com/bwyx/strapi-jwt-cookies/blob/80414f5bcd44217f2d6af6b78c22a8c4bce87067/index.js#L43) to remove cookie server-side: `POST /api/auth/logout`\n\n### Features\n\n- Split JWT into two cookies, httpOnly for JWT `header.signature` and javascript-accessible cookie for the `payload`, so frontend can easily read the JWT payload. read it more [here](https://medium.com/lightrail/getting-token-authentication-right-in-a-stateless-single-page-application-57d0c6474e3)\n- Automatically log out on user inactivity by [setting cookie expires](#configurations)\n\n### How About CSRF?\n\nNote that this package **doesn't** add a CSRF prevention mechanism, but it **does** ensure the request is from the frontend by using [SameSite](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite) flag sets to `lax`,\nand by checking request custom headers which only can be sent from the same CORS domain.\n\n- set `X-Requested-With` to `XMLHttpRequest` to be able receive and validate jwt cookies on the server\n\n## Install\n\n```bash\nnpm install --save @bwyx/strapi-jwt-cookies\n```\n\nCreate file under directory `src/extensions/users-permissions/strapi-server.js`:\n\n```js\n// src/extensions/users-permissions/strapi-server.js\n\nmodule.exports = require('@bwyx/strapi-jwt-cookies')(); \n\n```\n\nIf you already extend the `strapi-server.js`, you could wrap your function like this:\n\n```js\nconst withJwtCookie = require('@bwyx/strapi-jwt-cookies');\n\nmodule.exports = withJwtCookie((plugin) => {\n  // some customization\n\n  return plugin\n});\n\n```\n\nThen add the global middleware, this middleware reconstructs JWT from request cookies and then assigns it to `headers.authorization`\n\n```js\n// config/middlewares.js\n\nmodule.exports = [\n  'strapi::errors',\n  ...\n  'strapi::public',\n  'plugin::users-permissions.jwtCookieGetter'\n]\n```\n\n### Configurations\n\nBy default, frontend users will be logged out after **30 mins of inactivy** (not make an api request)\n\n```bash\nCOOKIE_PAYLOAD_LIFESPAN_MINUTES=30\n```\n\nYou can restrict the cookie to your specific frontend domain (recommended):\n\n```bash\nFRONTEND_DOMAIN=myfrontend.com\n```\n\nThe default cookies name are **user** for the `payload` and **token** for `headers.signature`, you can prefix the cookies name with env\n\n```bash\nAPP_NAME=myapp\n```\n\nthen the cookies will be **myapp_user** and **myapp_token**\n\n### TODO\n- [ ] Add test (?)\n\n### References\n\n- [Getting Token Authentication Right in a Stateless Single Page Application](https://medium.com/lightrail/getting-token-authentication-right-in-a-stateless-single-page-application-57d0c6474e3) by [Peter Locke](https://medium.com/@pdlocke)\n","readmeFilename":"README.md"}