{"_id":"@apikee/authenticator-common","_rev":"6-236bcf4e353be1c6e896d64c3c32fd4d","name":"@apikee/authenticator-common","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"name":"@apikee/authenticator-common","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"d1e9d0aea0746e8257a5c56608aa2cea58b83513","description":"**Common classes for @apikee/authenticator**","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-uQ/e4+HjlFYCsPyTtQAXWs0vJcSyKQYvT7/SkNtXTNUPqCf4Ev0yygeWAWFht6q0WiJddIW2DmSHKQ2g6SnPdA==","shasum":"85109f7b6c5b9c7aaefdb864ad89b527cde7e010","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.1.tgz","fileCount":9,"unpackedSize":2958,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/E4MHUTSuU5ppE1D2wJ47HUQ+Y1vsYlLZHi+2343nKQIgXQi0gjc5jJzdrv/w9Nqk0Ff1AUzZKFQhPZwrTP72Ma4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0wwQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6Aw//Q+INFfGN53Kxj3C9RJS8hypKllAZNGCGkDJbDBEYkUVymUvL\r\nxbYtgKBB0KHnBWXqNMCchSu+CyWLUzpgOgZjTuqB7Nvc9Qehhv0OcKNCSbZA\r\nRsZSAHDvDNBAiuNqgXq9l5FudDxyWHPgtSUTEq59YL6sb4rUOgVgrqvj7krJ\r\nNMZiTaVjhySYHxoT9IexHZxTi6NVCU2Mj36n35MhKbHjlV84tremPbJF0OlD\r\nLBFlM+OXJV/B5FQU0OSSFOgYChibYuMeojhirf6vgaQGc7tO1E2VS42tRRHy\r\nOmY0oCykjAsT8tPoFQPdMokIC4y4whbtc19o/EXpSiQBd0KcEzTBbCFWM8qV\r\nhpAy4ZC7zSxbASJb9kp2V6F+NRpvhYBbNOkXlyz8uQh1542m1iqoc0WZLVPG\r\nf1WK8kGagw0VAfxgVqgLK8QSVSzyXad9gwDLSJ3u4jsVXkTB+r4UeSo7vXI1\r\nn5l3rjzbRFeNEPldx9TKvPlLBCsSTzV1RDo5Lgfc7UnQWr+YOTz0mjX3a1bY\r\nj9wWtaAir4AW6z0cQkAoZ3D67tYz/vg2VL0X7iBpgfNw4OzyLTPfG6yaXUzg\r\nf4Q+KavA6opHtUjuXGI1fyPYR9bJpSEKKlaNUC2YhEcWpW7OnzhvM5hRU1CG\r\nM0ORsX2UVF2zX87tU1EzMrjOkJNcpoBzvJo=\r\n=EyVe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.1_1657998352168_0.750986139509543"},"_hasShrinkwrap":false},"0.0.2":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"3788f49be7674c786edfa1c79c123c2032d0ad38","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-RmOCmetFDp6AGv2HhUKXBlEoTpQvjo4n4xCFKJveuWXF6+iYadSv7z8pSF6GCZlqfdqXtrwC6d62SMtcqZsmCw==","shasum":"d26bd155b52234a9a360c8bbf40294624fc8fb79","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.2.tgz","fileCount":9,"unpackedSize":3019,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQChnTyrWjsGDoJKAAaNhqeHlTQyGMfNxWtIF+f2Fbb7ngIfMbYqDvmtIu2cw/Y2j7M6uX0fgB6bl+7i3GGwq2kNiQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0wyWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXIw//R+3t/HC3MbUOoBisk0Ifnlw8cU+XEN8N9c4a6aMqbozdoiAM\r\n8cQ2UflV0Ujy7czsCfDt/3TM6PBqsp18Qb2nZ7kbGtUXBhIBwAcqqii0Um3C\r\ngPBZXMnA1P5o5VbxxD0UQCk/As3slR5RmGVkU756TcEUwEWbXDUBemCenB7H\r\nTwS1rKE67DfRqTCLKfUVOA1kA0wWl453c+sqrnpgaPw23EqjThqfl3w3vz4C\r\nQR2A8AeAI2urUu/I+E1Y5X/wV9pEvvmC+e3G+gcSWvViqullaFlJ7n8wMlAw\r\nTJqDvJMGQLdIfFyTgL1tV7OR5jr4Z9j8dsy8hBMr6hZlWiI7c5Atmekvjk7E\r\nvAlj1qpOmf6H4CrxqWirtgXgIMTq9/4PQZhHnlFYIEIOg6Iy5NrJ6BuT2/rY\r\n3RyVBsWUcXU5A1AMfjIDVeh7Cn0KZnUVQ3YR1Gfu4HmVMWH0gHmPDygYXlgj\r\nZeWvKku/TYfWFkAvfspe6482KQTnRHDM44qCvISURWIgvHYHoqLxI49JWQUK\r\nhx8lMznzew/cYH0IBqPoOKPmZckRhEfPjQ4cmewANhE20xlqWJOCbRHbkE60\r\n911JgMb8eDq1SXaAmu3Zl0zPkFD1lf1k44MVoDnSOog0SHPufFBk1AxZ4mKb\r\nwJHDW0qtkmusBDyg/XXgUxyF78mXG0Ig4z4=\r\n=dEY6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.2_1657998486618_0.7340274717207318"},"_hasShrinkwrap":false},"0.0.3":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.3","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"564486853a5579580a68519f85f2303a2f1c3975","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.3","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-pjy5LrTQ+qjy5nvADK4+C2x6/NDzKl4rkd+I51xbA4g5QnJQV4KEywwE4WFkvrGst/aLwgm+f42+5SUHoKbPrw==","shasum":"44f215335ad7d79413a536e858a2896da0b450a5","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.3.tgz","fileCount":9,"unpackedSize":3073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtcKiPL11w53wx65uYBVFlzNtIqxpljrRBwPZHntozAwIgJ2tPnAZ1CgBQlTZ2T5Bv5DSU0hCtPFmQHg7tob3Ld8c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0xXiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrP7A//Vq64RlgeGLSk8SeUkB7IiMcgzmWilIKS6o3Mc9QfKjC/y+9B\r\nBTyQfQCD/xLlnxr2w05XosE5Xhl5gZne+/tMjlgeIIh2mGBAhZP6uYSG8A0V\r\nSi5ADEQ+H7GjQV5InKNNDMAMjeqiFRRUJud2XpV8otXeWNMU23XpyYiWQUY4\r\nACQpm9CzSTJq48vqfNfxCYJjx2jTtZb46QjM0vxj7QbdQvg/db45ZpxkbKIu\r\nOUkmZxvH4ruQx0UYtrHQ8Ic4r5R2JlvzujcGXlJB6pCPcXvfDes/kfvm3KKB\r\n07pm2AB3EK7QIhzSNE9laqvn/mEdxUO37tKF6pfrssHCOnPEXtPYBtUxTSFi\r\nryVBy8OhhbCf1AnTFfkkyfXQVN4OTsM5/HBjPLQcX3WbXTSC5a/Afovq85VX\r\nyGq215f71R7psU8BCqHdWgGTLA+VUsi0nCK/SmaF5GSDK1XrKF3NA8n0LUOX\r\nm75UHS/3PSAWY+Eb/rSIC56XHAGkqsvUeAQTskVXTjH8c/JKOZjnihtYFhUr\r\n53Fvjx75q3NJ258tpVs4euKxrFvUHoyckaQfhvHHjjN8l8JFP5IYY5H70gDx\r\nRoEOG/HO+exWhtoE1i9fjaI5WWNQfbdxWLQhYNmH91YjhN1h4qBFLgAoRsf/\r\nXnEGdKWABlmnSpyhrxUf/1oIhEOFCADclP8=\r\n=C2II\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.3_1658000866263_0.9079175442100289"},"_hasShrinkwrap":false},"0.0.4":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.4","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"916136ec43be7acaddb50283eced2784b2bc4d12","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.4","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-yYwxd2TjoF/aylZzgSNOOx70BoAfHvdjHYwWXROLKXnaJGQgMeXMXQYdE+1Q+oaTQNiI1WqqYzymwbRF4C4N8w==","shasum":"699206caffa903e3e8f129e5acee1683eb8cfdb3","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.4.tgz","fileCount":9,"unpackedSize":3127,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGbRM2hFr3NkkNjGmnZo7MGGKIVX+M5PT50VMGCb0r9wIhAIIw6uPG0RA/szf2IvkU0LLJtSzC+lfpJSk0qy5aJx36"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0xadACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAcg//SOBKN3YkqKltHn+KTc4eFssdplSYBvD8rjnIQunRk3wkFvcI\r\nRhf5+Kc9rZmbPZz+f4XoXH3n/Un9yDk47tyv5JGePcW3URlkc+K6GHcB3epN\r\n0SLmHbB1oV545LzXYTVwbiZHyQfeQec/9d8t+lr2MJzyvT9G+J1a7HeKtQJx\r\nepvF/KOHZQn1yEOSpUlyJvAWExOVGelWTmvkoJ0nDRJcYed8AbUmwyrmSW8L\r\nhwqafTg6pNBONnWVjlCjp1iU4FQwKswLpAlvJEamdzbC1sdPwpzMCO5JVDr2\r\n9xzH9g7zM2+zbq8tp7kSJn7s4CEHVrfw08B9FigI1p4Y0XZT8ZZVH71DdiDL\r\nBya3hcr/LDrwd9dJURoAsHwVh0V8vvfDTUa/WskgoU0CFjmK829wthR9Wn9o\r\nG0r59LTbaIuwHAJDlfwFnJyANbT65NIfzq1ILa4o2y6cUjK3v0Cj6hA2eduF\r\nTaaogiLNwzhdJgbvFo6w1SqU4u7IjNnbzgDXpdNAGyGByfsebg9OH1SdVhUV\r\nVi4+mFDyylg20FFWsCFMwj89/x8f21wX45+wi1tfxMe5jOFEAq9fbUK4+rdo\r\n8TkcrF3jAfJpy/Q494PitwT9R1Ag/wDyT4lhYP2vy1+2We5oPkiO854CeNWU\r\nR4RSfzjaSyJ4FECaxGP65hhiDj2QGmCpdlk=\r\n=kgJH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.4_1658001053491_0.29543838135268885"},"_hasShrinkwrap":false},"0.0.5":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.5","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"f0664db733daaa9a6ccaa606bea571d0ff8b4def","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.5","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-RyeHzxUqkTT3WLijUlRNFa9LVd/pLNtrcVCpCBDsh/w+cGklgrEBvxL/xmyIksKAq+Fmgv5IQd3SLg6tgu9GEA==","shasum":"835da14ab1a43d4c75d38cac767debfa02a6ca8d","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.5.tgz","fileCount":9,"unpackedSize":3167,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvFM6lYwaRjIIJN0+Nxa+T64h/kFYYK/uB3Zo8ZeUvPgIgLPoaFmSMDYoUddJ7Px6d7hTtFhm9TYht/0CJQ3aFx+k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0xf4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4jRAAoYhivz6Z6pvIbCHyl4RIVqYLdaZQk381Z+qPp0a5oIdRc/zw\r\nwlY/F+PL6l9PCmIN6rSUMMIcq2+j0HuTOpgfFM2r9XgdbjFDQM6opjZ9NYx/\r\nWECc2mIrvfExKs2K2A5d2FoGi6gzO8rlZ10EDDU2MzY2ABRUNAXUiRywistC\r\nH7DWLTR4p1jICnrTbrZvUhE9QaxjnlOREvYbNdkFe+XRVyxd8eKI+mwv+OJ5\r\n+PDzzNvi+RgxY92pbMNh+CWkiLnhaDNtdtjBKDW3F8RTOhkzyaffXiY+t7mg\r\nd9BUxhx0J/+3zURZXMiG2geZK3F1Acpk0QlEc1FzharGQmWXirdDxgI/Mxr0\r\nBJ4zokzFPvGovwNwRRX09LvODFoQmeBFgDjXmph7QbmiA5ttEsbFo1UCggIv\r\nOIrggh8Ly/N9QsQTrsH7ozUzP13eVQDGNgxTsXtRAmBXFmYuUipC1J7Wv6dL\r\nyxx903Jp8jr3QhEGyWnXUnhLM4sEKwqiuPqVxVq4K3kr/SY29VADQptIaw4W\r\nyBlHdrK9llkRHkEOTIo9quWrZCfEMNzM+6uNxKyt3IOLK0h7lhZfPssCjkk7\r\nATsrrjNLlyJVRuQTWFp3NFaMdFO/gx8/ZyavMPeVkii57KHAyAo0CSW7Iyo0\r\na781Tb0h/D/9FsmdxHSAK45XZV6zxYw0jf8=\r\n=V6wX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.5_1658001400031_0.3979223407028263"},"_hasShrinkwrap":false},"0.0.6":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.6","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"de72bffc360692a3cca83d63e917f63cd9e9c131","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.6","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-osI3ljs4sSFACPBEE4g7gzFEXslQ+ZJsVYwruq5gXte7YPzzSjjbD86mff2weaKl9JzDDiT2hnlCeqRiVU6LIw==","shasum":"9a13aa7d6c001e586f019f2e5ff202f8e3da12d2","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.6.tgz","fileCount":9,"unpackedSize":5289,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOILxs9MYCXV7I9Jz2rW1ZlDJji2wZ3OI9QjEUjdYsFgIhAJtDtA/JLeii9XrgR2YCbMt9MyQyKWO6iDxLlgUltsPy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1EEQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmiA//bHRwZgSPzODGidcnoUAcxPMkUUSt99tR/zba1KnzWqkXc8Gi\r\n6m0wacgBqohaXciETLY9Ps1DPXBpdC8DKx6v/wbyrbbn4VWWIP5fPhg0tMW4\r\nUOl4nFs4WwShSNMVXpnxBZHoxtmCjwKdfX9UUxwvnBAAcHwaaeLDg60L/8d2\r\ntilYgVbv1EyWJI6DqU6rdK1MZADE3mX62dij8aIZpCu9hSO927ws45ZMPQ5B\r\nwL5Y/W3/cB+JPkr+fPJGezdMlI0ldK8ZEQEzI1pDPFkEHABNE5SUm2ArzkHJ\r\nTteLqw2Wqkv6kTkd9y74UatzoSM7axmAxTVBpypMe742SWo+dCGgn6IjyB9m\r\nCY8QKw7r/Ow/g+J6BEDa1bmf8WkhXkj6pU3vI+VTgxhtUnDRtQn1j3GvQW14\r\ngY41+3DpmzB7jtvtuWKfzbIX3vE6qoSvBdRL7Akz4K/zdXYp748lC/lSbmK/\r\n2H7uLFazZH4WuSylx0fvxg1oGJniLJwYRncko241rFxmUwVWbZKSryrt841d\r\nfJFNKHjVJo8uTdDns8H4HpiOODjgX1961IswBmjC/n1Y2Ed+Q3m+Pz/m4kM1\r\nuEPUf0ai+pBKJDX3wOwMjkFYVSz5vGV8kQWcqyA7nAB6VlcOBVs30S+jUFpY\r\n9YuoYw0C+fHe5+m8cAulBsGcG5tnH3DU9k8=\r\n=/vtP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.6_1658077456137_0.9517606965138778"},"_hasShrinkwrap":false},"0.0.7":{"name":"@apikee/authenticator-common","description":"Common classes for @apikee/authenticator","version":"0.0.7","repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"main":"./dist/index.js","module":"./dist/index.js","exports":{".":{"import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","build":"tsc"},"keywords":[],"author":{"name":"Jakub Tomáš"},"devDependencies":{"@types/jsonwebtoken":"^8.5.8","@types/node":"^18.0.3","typescript":"^4.7.4"},"types":"./dist/index.d.ts","gitHead":"2e95553afe4315c606a4733971c792ec1e839586","bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"homepage":"https://github.com/apikee/authenticator-common#readme","_id":"@apikee/authenticator-common@0.0.7","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-JBruJ7hrc8TCAb1XcEqFF3szaNb5cYF7xTnvQ5TQxOfnQE/aYyBStmgKk2/5PhLDecRHKr7hpNjYni5vUqTJlg==","shasum":"ed8ab12ed0014a4fef5c25bb6888f6c4f8ceb2e2","tarball":"https://registry.npmjs.org/@apikee/authenticator-common/-/authenticator-common-0.0.7.tgz","fileCount":9,"unpackedSize":5307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs/7/RxXXIYq60x6v+U4DfZpuN9DKubmy+oHEfD4A0zAIhALjn3jCmf3Axu2lGWy134xTmPmEaKA3uylAZBc790/ny"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1EPYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ8g/+KiR8G1RMKgk7DTy4ms/tEvsl0heuv1B6ta6QXlh7pkEfGAtT\r\nwnLskWArJQrLYlYWvHjQOHcRbo7aOQAdrjGLrLXEoGtPJXlF9UV8vVd+2H9s\r\nYmAh5wnVcy99gDR8dNNMrxt4D34c5vZ4/y9weO1MoTu1w3sc/A2i2kXsrrfi\r\ncnCKo8aJcbSOd/rKyYycfBuAhD9igocjhHq5BWKWhA9/APBP/i1+gzC+BpjN\r\nbtTEwxAMrY7gnkwTFRXLj/bawSsFbH2p3yfCw9mKTlf3V+K88d9i03PYjkVu\r\n0+Z8Vz6LtDMrP2pbfid53orDHnO+vvyDW4blAFQlb69toVJ7PUWO2nrQUJN5\r\nNShwB8MU8dd8eyzHUmhj0uVYvNRO7bJ1MzEMeygPCpMFUBlbjvFv0QkaTr5r\r\nBbP5xV2jSxmirf/jl8fGR2SZ91JT51B/HXq7cN/Qu7MnJD341DK2D67GJ5GK\r\ncvrKzj1+LKvgQgGHZIGlkbbKUF/b16h+Jk/UUeXLzZOJqfVDUp1RgOz/casf\r\nfU2XkTx2VFr+7tn5qaJgFOZvG+dFLLeOBWLc3zj0loOKwM8C2eUVHGSdwFCv\r\np7EWywAFxw705C8DLkM8FgXkbId7GWwmRCvkn+YYpA6BY00H9Ju+VkLNCFGk\r\n8QPUvF2+9ck16v0/kEvJCjQtambj2WZwmho=\r\n=kaB9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"apikee","email":"info@apikee.com"},"directories":{},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/authenticator-common_0.0.7_1658078168708_0.5608914881661782"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-16T19:05:52.115Z","0.0.1":"2022-07-16T19:05:52.319Z","modified":"2022-07-17T17:16:08.916Z","0.0.2":"2022-07-16T19:08:06.794Z","0.0.3":"2022-07-16T19:47:46.429Z","0.0.4":"2022-07-16T19:50:53.642Z","0.0.5":"2022-07-16T19:56:40.242Z","0.0.6":"2022-07-17T17:04:16.329Z","0.0.7":"2022-07-17T17:16:08.845Z"},"maintainers":[{"name":"apikee","email":"info@apikee.com"}],"description":"Common classes for @apikee/authenticator","homepage":"https://github.com/apikee/authenticator-common#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/apikee/authenticator-common.git"},"author":{"name":"Jakub Tomáš"},"bugs":{"url":"https://github.com/apikee/authenticator-common/issues"},"readme":"## @apikee/authenticator-common\n\n**Common classes for @apikee/authenticator. This package can be used when creating custom Store for [@apikee/authenticator](https://github.com/apikee/authenticator)**\n\nExample of custom store and required methods:\n\n```tsx\nimport { Store } from \"@apikee/authenticator-common\";\nimport { JwtPayload } from \"jsonwebtoken\";\nimport mongoose, { ConnectOptions } from \"mongoose\";\nimport { RecordModel } from \"./models\";\n\nexport class CustomStore extends Store {\n  constructor(\n    private _connectionString: string,\n    private _connectionOptions: ConnectOptions = {},\n    private _connectionCallback?: () => void\n  ) {\n    super();\n    this._connect();\n  }\n\n  private _connect = async () => {\n    // connect to DB\n  };\n\n  addToken = async (\n    token: string,\n    subject: string,\n    replace: boolean = false\n  ) => {\n    try {\n      if (replace) {\n        await RecordModel.deleteMany({ subject });\n      }\n\n      await RecordModel.create({ _id: token, subject });\n    } catch (error) {\n      console.log(\"Cannot addToken\", error);\n    }\n  };\n\n  findSubjectByToken = async (token: string) => {\n    try {\n      const record = await RecordModel.findOne({ _id: token });\n      return record?.subject as string;\n    } catch (error) {\n      console.log(\"Cannot findSubjectByToken\", error);\n      return \"\";\n    }\n  };\n\n  deleteToken = async (token: string) => {\n    try {\n      await RecordModel.deleteOne({ _id: token });\n    } catch (error) {\n      console.log(\"Cannot deleteToken\", error);\n    }\n  };\n\n  deleteAllTokensForSubject = async (subject: string) => {\n    try {\n      await RecordModel.deleteMany({ subject });\n    } catch (error) {\n      console.log(\"Cannot deleteAllTokensForSubject\", error);\n    }\n  };\n\n  clearExpiredTokens = async (\n    validateToken: (\n      type: \"access\" | \"refresh\",\n      token: string\n    ) => JwtPayload | string | null\n  ) => {\n    try {\n      const records = await RecordModel.find();\n\n      await Promise.all(\n        records.map(async ({ _id: token }) => {\n          if (!validateToken(\"refresh\", token)) {\n            await this.deleteToken(token);\n          }\n        })\n      );\n    } catch (error) {\n      console.log(\"Cannot clearExpiredTokens\", error);\n    }\n  };\n}\n\n```\n","readmeFilename":"README.md"}