{"_id":"@cadolabs/auther-client","_rev":"7-a69ca45ef76a98b33a2e5362cc8fbd31","name":"@cadolabs/auther-client","dist-tags":{"latest":"1.3.1"},"versions":{"0.1.0":{"name":"@cadolabs/auther-client","version":"0.1.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@0.1.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"e877a6648f4ec4fd9fd646b5947a8c9849a2d506","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-0.1.0.tgz","fileCount":19,"integrity":"sha512-3Gdd398rDMZAgw4R8xwo1kK3GlEcbVd6VKDHTXdbsRzJdK8H+wZhSxSOGOfWnU2NNY3/jjaXuviMHX7xUlYNow==","signatures":[{"sig":"MEYCIQCzCefh5sSp+rTDX+7NUVuMDhgQtgPgWvxcbl29+13RCwIhALyfwecCt1PCNf9qKY9qHHVtisVPOBF231u7IEBqKUAI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYPctACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaORAAmUE8vYzn0+/Tj6LLhgLc3fY+aw3oZsAjZf/zD81qWDjlFYLp\r\nkxSvvgWi9zaXY7ZwB09t9x6iETxaYGu7F9oFrHTaaleSzCjJEl61yb/VEMao\r\nKbvQu864+18/h9CoXf55pfITLW2XxIttAGTaaUNNePdUiEg/MyV+14eDqdFR\r\nPRU4Nk+ACNpRmb2+AuPAJlLDlMKSWat9BEf6QxGVK+3Szorx75WTPpkQ72GP\r\ndoy1ZKDoRuxXW9Y3FPImWEN8FbnMgdxHDHO1ifDRUwptnM8HWe2nWFXdr9jt\r\nV2UjMe+dtrefirDgaqVLTZ5RDKj8PrQ5di9rPe1ubxNBlcXsG9S/FWBsg1Zl\r\ntGJ5p/llXrz9ubuCuB1w/WQ36j75O7rY77FG+toG2iNd7QBqqhVT+SIEoAdA\r\nZNZMZkCdm6XPLvd32apj1vLQf+LOSB2LU3RIbcOxyvFKyjX8TC3KOPs/LCrf\r\nORNJYiiD/e5tmdw6trGTn8sQYK4w/dVnbd6+UjP0nzaPHl8U1FO3W+RUcWt8\r\npsk2nhXo8nUlEuEviq1UAcX1D+cYjh9sZkX9Ulu5m6LWIvHkJqV+GhNcuK+O\r\n+GWViy0ny1WH8/S7rsir3JFB+0QyvXn6IGuk/I+w7o2+oqrGbHG7tmNM043R\r\nfT1T5VELsqwwhHzEct9fTb1OG2O7zJk3Jqg=\r\n=g1Ei\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"05b5ea409a90a4eee4a8c63067679801665c7c14","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"7.24.0","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"16.10.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_0.1.0_1667299116776_0.5371605912132844","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@cadolabs/auther-client","version":"0.2.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@0.2.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"669820eee29d28bad49a29f39178fc02ce920f55","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-0.2.0.tgz","fileCount":19,"integrity":"sha512-JghHLI/xw8XVRetiBosFozVOqpWIGXwLmkqg5wTBeE5VUbnEwIiH4OafBXMu32sMt6vIUEIRvaU/A++0mbdAvg==","signatures":[{"sig":"MEUCIQC3QfLItLyUw/yED21uvnEW/DKss31LWN3mYjyeLDBKaAIgQQuJCNYE8mYjDW0nxvSdSEDBOalMLWhagfeFWMhCITQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL/H0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUuQ/5AJRbaBCZBfC2vvFaTKY3eA0gA+HcWzj/63srFf6NNzneedYL\r\nkbFajOd/EHIF9FS4C/9f4eT9NmL5oSFST9t5RkpIKJimsW1vmMsHNpqh1xpt\r\nrT9w7SyJJYfzefyRHxSFcsryhjAgrctoSiSwjKknelrboUaVFaGRWqWWPEMh\r\n81BeoNJma409XqEyGpNBJ47AJ0c8r6APqC6Ja5aJSHOm3Tods2IfN7vqL3RY\r\naelwryYLtRKOIppnpx3j8tg+OufDn4ktJuVs+0AUrVetsFWnfooy7xXIh+ZR\r\n1jatRF9hjaBk2DZErxz3AuNkeJbNsvPVodcQrrZDDfMWheWp1rxkOxzwhZO+\r\nBLemreOVUcah/CvMbwohOSig4XdaXSSEOnm0qw97eoH/H1QtHVo+eMtpmTlP\r\nV9a1gQJaNSOVLMUiiqDIMtd2M6gtvlpMtU+IH6JTBuridu01ToFvM44D7WiS\r\n/w0rmW2mq1eDwHAkmYU595DJo24pIecPu9GEGcC3snZMAwOXdkhIxazcql5c\r\nX1jhlYprUrTs+8gNjbD47Imya+pksSCZE1A27khxWM8LpYoRAN6BGmKPYQ5R\r\n4tKRsCO9gBroNYAhT+NyqjgEKOGxbzr+XNx3gsorjf2moR0kgWO/yjBZ4iwc\r\nQF6Ilxs4c5F6bon02T6W0CFEt6a64dxeIUY=\r\n=fSu0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"222c1d644e24cba8570bab943b675fafa995c6cb","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"7.24.0","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"16.10.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_0.2.0_1680863731786_0.24512886099629205","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@cadolabs/auther-client","version":"1.0.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@1.0.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"8a8fcad0f1f268550c01bb9a4ddb14d684ab5b05","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-1.0.0.tgz","fileCount":19,"integrity":"sha512-ct+smsnqIQpidfg2gjf4Og+U5OO6s+lMkCvPsm4Quwvl6fGV/JyhXp6ud/oRoconcvJFK++c84MIFc5J/CIStA==","signatures":[{"sig":"MEYCIQC7BD3EF8ip7UvEYAPvw3UprJmftHkqKIcxt0/Jclk82wIhALjMyzaVG6tOD9hJpF/X5GZwrMOAbBcLHjY6MwueIaWx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88977},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"922ba7aee0e966ffd2cb9eb02a5774643a2ca393","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"9.5.1","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_1.0.0_1701082023194_0.349867501355521","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@cadolabs/auther-client","version":"1.1.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@1.1.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"8824070d66e5e8c989b795d0d8760b392fdf67d6","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-1.1.0.tgz","fileCount":19,"integrity":"sha512-S1wyxXZJAlWb0ZP9n7DuQ07vdNQ0rfu5YRrIojkU2AOLswmaJsMhtIOoL5JDttFGJco0+aq0A84CrpV2Gt/ZYA==","signatures":[{"sig":"MEQCIDRp/Vw4Ddjrw7aySWk59oB8t3ozgn242smz2Lw+ICmTAiBeQh2Qi/0EeEm0MEL5Hp/2k3ZYaXrOkbrRUUa/Zxf3tw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92858},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"1b91e8342370a21f647953d2624a424c47a15182","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"9.5.1","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_1.1.0_1721978624499_0.0663045325585696","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@cadolabs/auther-client","version":"1.2.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@1.2.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"a7b78e58b4aa1ee3f9b5a96559c6060923202f5e","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-1.2.0.tgz","fileCount":19,"integrity":"sha512-sL14Rr4PVJapFkBymaZBhU+VcUPNYmKKoF34ZLryMyQvG0HG891GqUtE9frGXhmnayaX5Sx5kQISTRKHdMPVxQ==","signatures":[{"sig":"MEUCIQCXMsBjX6oX6BBy3kW5a0+t9GVLeQWWk8lSgrbUhs/vzwIgd9gRoo5DZN/e2ylYBM08jm5f0GY38OVGQdjxOpSPV/0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88608},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"7ec2d62c761df0144dd8f55cefe2f8f744800cc3","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"9.5.1","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"18.16.1","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_1.2.0_1777384394823_0.9765970806144941","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@cadolabs/auther-client","version":"1.3.0","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","_id":"@cadolabs/auther-client@1.3.0","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"homepage":"https://github.com/Cado-Labs/auther-client","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"dist":{"shasum":"d997dc3654309d213723ba98fb8d6502e167a8d2","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-1.3.0.tgz","fileCount":22,"integrity":"sha512-x9vNxKu5bBEPlcuUyJ04pKCttX6o3uJrH6ONiPncWNlkdpHsn4wYPzi2Hol0dBdDsCK2aidi+LuYmGZ4VoRuHQ==","signatures":[{"sig":"MEQCIAZTlJ+NELVHGWkoDjgsEIoWWdU7fx8XgIJcK7qs4VVaAiAW/lxcSaeSlF61TzCP/elvhGo3QEu2sD7+HJAD+mv9rA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135109},"main":"dist/auther-client.cjs.js","type":"module","module":"dist/auther-client.es.js","gitHead":"fef606d780c673f3dff81078ba94c2136d74479c","scripts":{"lint":"eslint .","test":"jest","build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint:fix":"yarn lint --fix","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"repository":{"url":"git+https://github.com/Cado-Labs/auther-client.git","type":"git"},"_npmVersion":"10.8.2","description":"Client for working with auther on the frontend side","directories":{},"_nodeVersion":"20.20.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.2.2","eslint":"^8.26.0","rollup":"^3.2.3","prettier":"^2.7.1","coveralls":"^3.1.1","@babel/cli":"^7.19.3","babel-jest":"^29.2.2","@babel/core":"^7.19.6","@babel/runtime":"^7.19.4","jest-fetch-mock":"^3.0.3","@babel/preset-env":"^7.19.4","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","@babel/eslint-parser":"^7.19.1","@rollup/plugin-babel":"^6.0.2","eslint-plugin-import":"^2.26.0","eslint-plugin-promise":"^6.1.1","jest-environment-jsdom":"^29.2.2","eslint-config-umbrellio":"^5.0.1","@rollup/plugin-node-resolve":"^15.0.1","eslint-plugin-prefer-object-spread":"^1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/auther-client_1.3.0_1781013887681_0.01407507095491356","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@cadolabs/auther-client","version":"1.3.1","main":"dist/auther-client.cjs.js","module":"dist/auther-client.es.js","description":"Client for working with auther on the frontend side","repository":{"type":"git","url":"git+https://github.com/Cado-Labs/auther-client.git"},"homepage":"https://github.com/Cado-Labs/auther-client","author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"type":"module","license":"MIT","scripts":{"build":"rm -rf dist; rollup -c","watch":"yarn build --watch","lint":"eslint .","lint:fix":"yarn lint --fix","test":"jest","test:coverage":"jest --coverage","prepublishOnly":"yarn build"},"devDependencies":{"@babel/cli":"^7.19.3","@babel/core":"^7.19.6","@babel/eslint-parser":"^7.19.1","@babel/preset-env":"^7.19.4","@babel/runtime":"^7.19.4","@rollup/plugin-babel":"^6.0.2","@rollup/plugin-node-resolve":"^15.0.1","babel-jest":"^29.2.2","coveralls":"^3.1.1","eslint":"^8.26.0","eslint-config-umbrellio":"^5.0.1","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^27.1.3","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-promise":"^6.1.1","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","jest-fetch-mock":"^3.0.3","prettier":"^2.7.1","rollup":"^3.2.3"},"_id":"@cadolabs/auther-client@1.3.1","gitHead":"b7df377035899d9bf45e6d3ef365e789da9df78d","bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dny+tQgVVlB/BB/F0i4kWghRrbEXf/2SfQUyOiRqHUsbIbqL9wKNfonf+38JIHLhe+P7iTHB7Wl/oFJSUx3vvg==","shasum":"ebd6a7a5dbe363f1a4a0902b56336f9dad2f1229","tarball":"https://registry.npmjs.org/@cadolabs/auther-client/-/auther-client-1.3.1.tgz","fileCount":5,"unpackedSize":92886,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/OPCHm3uJthR2NFYewHqaCB1XjtTxehUnUb0mU+WLKwIhALpi+tMk4Y4M4E9UAZernPNVyDo3DT2wXT+j98Bevr/L"}]},"_npmUser":{"name":"cadolabs","email":"oss@cadolabs.io"},"directories":{},"maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/auther-client_1.3.1_1784728264714_0.33740101240907294"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-01T10:38:36.698Z","modified":"2026-07-22T13:51:04.990Z","0.1.0":"2022-11-01T10:38:36.986Z","0.2.0":"2023-04-07T10:35:32.043Z","1.0.0":"2023-11-27T10:47:03.431Z","1.1.0":"2024-07-26T07:23:44.670Z","1.2.0":"2026-04-28T13:53:15.025Z","1.3.0":"2026-06-09T14:04:47.833Z","1.3.1":"2026-07-22T13:51:04.849Z"},"bugs":{"url":"https://github.com/Cado-Labs/auther-client/issues"},"author":{"name":"Andreev Sergey","email":"elenik1994@gmail.com"},"license":"MIT","homepage":"https://github.com/Cado-Labs/auther-client","repository":{"type":"git","url":"git+https://github.com/Cado-Labs/auther-client.git"},"description":"Client for working with auther on the frontend side","maintainers":[{"name":"cadolabs","email":"oss@cadolabs.io"}],"readme":"# @cadolabs/auther-client &middot; <a target=\"_blank\" href=\"https://github.com/Cado-Labs\"><img src=\"https://github.com/Cado-Labs/cado-labs-logos/raw/main/cado_labs_badge.svg\" alt=\"Supported by Cado Labs\" style=\"max-width: 100%; height: 20px\"></a>\n\nA frontend client for working with the Auther gem.\n## Getting Started\n### Installation\n\n```sh\nnpm i @cadolabs/auther-client\n```\n\nor\n\n```sh\nyarn add @cadolabs/auther-client\n```\n\n### Configure\n\nCreate an `AutherClient` instance before initializing your application.\n\n```js\nimport { AutherClient } from \"@cadolabs/auther-client\"\n\nconst auth = AutherClient.init({\n  autherUrl: \"<AUTHER_DOMAIN>\",\n  redirectUri: \"<CALLBACK_URL>\",\n  appcode: \"<APP_CODE>\", // your app unique id\n})\n```\n\n### Usage\n\n#### Logging In\n\nTo redirect to the auther login\n\n```js\nauth.login()\n```\n\nAnd after that you redirect to the callback route `<CALLBACK_URL>` with query string `authorization_code=\"12345\"`.\n\n#### Get tokens\n\n```js\n//async/await\ntry {\n  const authorizationCode = \"12345\"\n\n  const response = await auth.fetchTokens(authorizationCode) // return Promise\n  const tokens = response.json()\n\n  const { accessToken, refreshToken } = tokens\n  ...\n} catch (error) {\n  throw Error(error.message) // invalid.authorization_code\n}\n```\n\n#### Update tokens\n\n```js\nconst refreshToken = \"refresh_token\"\n\n//async/await\ntry {\n  const response = await auth.updateTokens(refreshToken) // return Promise\n  const tokens = response.json()\n\n  const { accessToken, refreshToken } = tokens\n} catch (error) {\n  throw Error(error.message) // invalid.access_token\n}\n```\n\n#### Loggout In\n\nTo make a request to revoke tokens\n\n```js\nconst accessToken = \"access_token\"\n\n//async/await\ntry {\n  await auth.logout(accessToken)\n  ...\n} catch (error) {\n  throw Error(error.message) // invalid.access_token\n}\n```\n\n#### Authentication\n\nAuthentication method for verifying access and refresh tokens.\n\n```js\nconst getTokens = () => {\n  const accessToken = localStorage.getItem(\"accessToken\")\n  const refreshToken = localStorage.getItem(\"refreshToken\")\n\n  return { accessToken, refreshToken }\n}\n\nconst saveTokens = ({ accessToken, refreshToken }) => {\n  localStorage.setItem(\"accessToken\", accessToken)\n  localStorage.setItem(\"refreshToken\", refreshToken)\n}\n\n//async/await\ntry {\n  await auth.authentication({ getTokens, saveTokens })\n  ...\n} catch (error) {\n  throw Error(error.message) // token.not_found\n}\n```\n\n### Additional usage\n\n#### Decode token\n\nTo decode the token\n\n```js\nimport { decode } from \"@cadolabs/auther-client\"\n\nconst testToken = \"eyJhbGc*.NHVaY*.i8ZJd8_-RU8V\" // headers.payload.signature\n\nconst decodedToken = decode(testToken)\n\nconsole.log(decodedToken)\n\n/* console prints:\n * {\n *   header: {\n *     alg: \"RS256\",\n *     typ: \"JWT\"\n *   },\n *   payload: {\n *     sub: \"1234567890\",\n *     name: \"John Doe\",\n *     iat: 1516239022,\n *     exp: 1516239022,\n * },\n *   signature: \"i8ZJd8_-RU8V\",\n * }\n*/\n```\n\nReturn the decoded object with parameters\n\n#### Verify token\n\nChecks the token for errors or expired time. If there are no problems, return it back\n\n```js\nimport { verify } from \"@cadolabs/auther-client\"\n\nconst testToken = \"eyJhbGc*.NHVaY*.i8ZJd8_-RU8V\" // headers.payload.signature\n\ntry {\n  const verifiedToken = verify(testToken)\n\n  console.log(verifiedToken)\n\n  /* console prints if no problems:\n  * \"eyJhbGc*.NHVaY*.i8ZJd8_-RU8V\"\n  */\n} catch (error) {\n  console.log(error.message)\n  /* console prints if token is expired:\n  * \"token.expired\"\n  */\n}\n```\n\n## Contributing\n\n- Fork it ( <https://github.com/Cado-Labs/auther-client> )\n- Create your feature branch (`git checkout -b feature/my-new-feature`)\n- Commit your changes (`git commit -am '[feature_context] Add some feature'`)\n- Push to the branch (`git push origin feature/my-new-feature`)\n- Create new Pull Request\n\n## License\n\nReleased under MIT License.\n\n## Supporting\n\n<a href=\"https://github.com/Cado-Labs\">\n  <img src=\"https://github.com/Cado-Labs/cado-labs-resources/blob/main/cado_labs_supporting_rounded.svg\" alt=\"Supported by Cado Labs\" />\n</a>\n\n## Authors\n\n[Sergey Andreev](https://github.com/elenik72)\n","readmeFilename":"README.md"}