{"_id":"shopify-token","_rev":"18-f877df149f05a45c8ca32733c4ea4cb5","name":"shopify-token","description":"Get an OAuth 2.0 access token for the Shopify API with ease","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"shopify-token","version":"1.0.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover _mocha --report lcovonly","coverage":"istanbul cover _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.4.x","istanbul":"0.4.x","mocha":"2.3.x","nock":"4.0.x","pre-commit":"^1.1.2"},"gitHead":"7885bba1cf32f00974aba42cf502c074732b5a2b","_id":"shopify-token@1.0.0","_shasum":"147d89708868f7d85b795bf6a681ff35bf4c16dd","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"147d89708868f7d85b795bf6a681ff35bf4c16dd","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-1.0.0.tgz","integrity":"sha512-M7YvxEwa2AXk/2qCtce4zaffJumLHvPssvsH4uwgKG7nk4Y2phnhDSFONxH51g6jjMCXnTAFvBFRTTHYaAPUPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElWpWCksNE2zpyVVG06uNMV0GVyD8vyP4iGBgsIOs6VAiEAirN2zFj/ynEOhCcrl4yJAcQRzHY8EgQIffD/StpK1XE="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{}},"1.0.1":{"name":"shopify-token","version":"1.0.1","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover _mocha --report lcovonly","coverage":"istanbul cover _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.4.x","istanbul":"0.4.x","mocha":"2.3.x","nock":"5.2.x","pre-commit":"1.1.x"},"gitHead":"b2ce543e1f84de9cfc0acc6d661ead4f11107409","_id":"shopify-token@1.0.1","_shasum":"6b6c90871f702cf13f0c7cb2a33751014713f3c5","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"6b6c90871f702cf13f0c7cb2a33751014713f3c5","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-1.0.1.tgz","integrity":"sha512-M+3hvDtXNwiqonsbXCMboULeeMGlpvERYb+juaezZa0OAx69wvGg55VNGRorHqqYfwP1/9mCHrhZ0n+NppuN5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFv+zTHMX5XQDCgmvg2IIAmu4vvlY3keLMSyegM8scbbAiEAx3fUzdTWO394ssRaU2Mw/o0BQXJ4qyDUyZ/50yXyNm0="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{}},"2.0.0":{"name":"shopify-token","version":"2.0.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.5.x","istanbul":"0.4.x","mocha":"3.0.x","nock":"8.0.x","pre-commit":"1.1.x"},"gitHead":"0ce4668c9c13a7b8db854966b8665d783255c6a7","_id":"shopify-token@2.0.0","_shasum":"317cf64b4e08ad4d03e721cb100ac54c44da1c07","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"317cf64b4e08ad4d03e721cb100ac54c44da1c07","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-2.0.0.tgz","integrity":"sha512-PjnPBwkQJqtNPhhCihZSkg+cRR4YNUghPQSkk5NnI9nJ5jT8KEuQ0PlBZujFdJluVNFkoE/0idhAGV4FomywmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHl1Dar9Lal7g3dE6p0Lc0Qs73uhV9BS/WhlEPxfUudFAiASTJ5zpOSCbcoj8D91nrcuda44r1ZzR7B8FVk3f7VjXg=="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/shopify-token-2.0.0.tgz_1473229408064_0.9636796587146819"},"directories":{}},"2.1.0":{"name":"shopify-token","version":"2.1.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.5.x","istanbul":"0.4.x","mocha":"3.0.x","nock":"8.0.x","pre-commit":"1.1.x"},"gitHead":"902f67ca3d26a7d9de6aff13cc15a2bdb8ca27b8","_id":"shopify-token@2.1.0","_shasum":"65e862bb019bdab39c35b67609246aedb920fc27","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"65e862bb019bdab39c35b67609246aedb920fc27","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-2.1.0.tgz","integrity":"sha512-tgketmEV2SesB67yahvi8yfXj/ZsQ6dbn4T90hGCW7uQQNrkaTT3c+0+CIvcaELpq3c0ERIjAybJaElCEbCIAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChTJtFr0HLz4tGrSChO9OdyHhTxekaGvQcWoIMrW3YkwIhAJZEiWw8eQKyaljlLe/qmdNtrlhyMy9axqlLUQ6wAYV1"}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/shopify-token-2.1.0.tgz_1474282465162_0.02304163877852261"},"directories":{}},"3.0.0":{"name":"shopify-token","version":"3.0.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.5.x","istanbul":"0.4.x","mocha":"3.1.x","nock":"9.0.x","pre-commit":"1.1.x"},"gitHead":"c8322fd64ab61d61b9e79f0030a99c65b7c66d49","_id":"shopify-token@3.0.0","_shasum":"53e1b902cf64254da98739d50585421d761210fd","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"53e1b902cf64254da98739d50585421d761210fd","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-3.0.0.tgz","integrity":"sha512-7z+dlzNkWRVVEodZdpv1dh5THsN+RjWznMYgd+Bp+Y1IOXz53TCBq/xf50SLCYk9X5gocI6k3N/ST9/1yQH8Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcmxZH20/hCxV7MNXGXCnTh0yQid8PAWFD1f12XguOQAiAwkZSz5Rnx6JO76//uVM8bimOwHZ02+wPE4HJlG7WwgQ=="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/shopify-token-3.0.0.tgz_1479807039676_0.4795415634289384"},"directories":{}},"3.0.1":{"name":"shopify-token","version":"3.0.1","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"files":["index.js"],"keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"3.5.x","istanbul":"0.4.x","mocha":"3.2.x","nock":"9.0.x","pre-commit":"1.2.x"},"gitHead":"029950ed667220472a16aa4370b5d3dce1b87b37","_id":"shopify-token@3.0.1","_shasum":"520547ce8de7769f692eacfc759c62da6df55ae7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"520547ce8de7769f692eacfc759c62da6df55ae7","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-3.0.1.tgz","integrity":"sha512-kBXXinRcl8oxQFDLFSEgVs9BPClDV582FTSkNGwwtWa+8LZStsBAdZxMS1G+Pd9CyskjmTL2lF01m18kkFUR5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBF9yIcUpnd2vvrffYvAeRmHE3SyXDSF2bNOnXDuVDSdAiEA4If0iPmUp6vcfOiiv2tfMUonAwT3AsRCsqwBjeofDdY="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/shopify-token-3.0.1.tgz_1492791095988_0.9974879659712315"},"directories":{}},"3.0.2":{"name":"shopify-token","version":"3.0.2","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"files":["index.js","types/index.d.ts"],"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"4.1.x","istanbul":"0.4.x","mocha":"5.0.x","nock":"9.1.x","pre-commit":"1.2.x"},"gitHead":"06880b1eb65e4358f75a8923d7fea357609bbbe0","_id":"shopify-token@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"9.6.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"integrity":"sha512-IiJpDN9V7AsqWT4uvGDN4Y3NbUkS51/N+WskXHj4Cxgc6JFOajVEsAa/pDMR8ZznOJYPIqFXfnIJXO6YgB0vMw==","shasum":"081e044476b12a66b95713d5647cd6f78de068f2","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-3.0.2.tgz","fileCount":5,"unpackedSize":14318,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD468wqTPr5QmCvJn3+L5pk3d/SlTmU6i2D2PG5Jvv6zAIgIszXLU5dvS+2j4c2uye9R7ISXdnpx8QurAnQAt8wQE0="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_3.0.2_1519419585575_0.29712277986244784"},"_hasShrinkwrap":false},"3.0.3":{"name":"shopify-token","version":"3.0.3","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"4.2.x","istanbul":"0.4.x","mocha":"5.2.x","nock":"9.1.x","pre-commit":"1.2.x"},"gitHead":"322cc9dc29ab2fe9c7f57cef05fe601d9c7b1ea9","_id":"shopify-token@3.0.3","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"integrity":"sha512-FW8l5D+hbGf7D8ko/MVins5SDXG5f7hSOk1usS5vSxNy+PSSg25/M35/7Ubp6agrA5hyJ7oGE3a8j3MpPHXcBQ==","shasum":"faee7dd01559d6f9899f4a9123a415439a3e4462","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-3.0.3.tgz","fileCount":5,"unpackedSize":14359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcB4ECCRA9TVsSAnZWagAADYEP/jmU7UAgpujOUWLbtEdH\n5Jl7X7FkkXaxSMHkA8x4hJSqOtjWtDZuw/VAGV7bMpafuXMOtvJiPphq99na\nsK1qj3VaMfqZa5DPEDJiyHZpW1sl5h0mWN+Ts4PgaO+mZK5TwDHdPzDvm6YY\ngUn/Ns1lz6TQbf/5xkqH1087QxH1xHi0/exhpRThFLTnb0tl10SsVPM3GW50\nW4uNktOP9dU/x2GDxByrR+w7HHizzCr0F+DcjqFyhI5+0PXpS5IdQMzvwIvY\n+nlvNIiBxjuVkBgx02fdbXMe1Go8E6a5gPTjdU49wedY3BdfyrKz9QIkJMqQ\nyJ1O2B5ZNE+gfjE+DNMD5Hf/AvdM43BfIZ/MF1cCCmkjojcAm0DWbyjfgjZj\ne5wK19Su1e/hy5PONPy064c2G1k3FBsvcFpm53Sgnku0eTZ3/YMOK2XnF2L+\nTatVIiIU41JWfbqsKct27EkInAIsTWa+HyryAQjGsU5g+pbmDReOBpm0IbAA\nmamUqZzarhcigO6wXdiS3an9xh4LjCcUawFK/Wxb/ohCN7tMKCKRSGGOLB9F\nmoLGMy+QUz41WvZBTVBwNWikUIv7bl8g7jSx4/xbJqWQQLDHvn7Gy/Tysm0P\nWP23ZLEU++FxpygdzEFbcYQVfHx54HZm6Ru8mP8QwwBq6+xSEMdWZNx540Q8\ncRZO\r\n=WBMs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDovlO8q6m/RXI77TkhJH7Gb+uIJxfpD9UpdIVTzEHPewIgQFLum5cmQLx8aveBjgbqGIwpZvy/rbpm0aY8qfPcqzs="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_3.0.3_1543995649764_0.754006025836564"},"_hasShrinkwrap":false},"4.0.0":{"name":"shopify-token","version":"4.0.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","scripts":{"test-travis":"istanbul cover -x test.js _mocha --report lcovonly","coverage":"istanbul cover -x test.js _mocha","test":"mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"chai":"4.2.x","istanbul":"0.4.x","mocha":"5.2.x","nock":"10.0.x","pre-commit":"1.2.x"},"gitHead":"414ff0a0c570564547763b4cfa32de7f01f879a5","_id":"shopify-token@4.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"integrity":"sha512-PQa7Zx5Am646H2Q/mHxQuZQduuvLr96HMBR4jrASAeA7I9bfu4ZACnDYoPLGuVNyYU8tCdicgKK3KjZomU5prg==","shasum":"1d4416674864fab48860b4f341a2c8c4097be009","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.0.0.tgz","fileCount":5,"unpackedSize":15625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQEprCRA9TVsSAnZWagAAiwIP/RAvp20uDQ9B5kecX2eN\nfbYv5E6qqufvd36RWvupa3c70H/EhUraJ3BYPlGmsa7cQa7kp+EIDzdIh7i5\n8PMDmHBbyxNelve2T/ODSatlYVtCUseX0wmC8vp4fYDnHtG2euP4sZZSPt1p\nSiCVLDfmjIr4TnDCrKELZCpcXp7PA0a07QOhdAQvOo2qtIT5gSl5opnLKDxR\n2+ETiIZp6menzIcTfzbUXT4AbjQ75X98TJ5vdgbPedAnS6zZOKe/sgGtbP3j\nOa0+w76yQ9NtlJdPYyy2jdpyY9McolVApLEl23WQYFXyavvmoBvjQWE+ic8Q\nkKNrhUueeJzsuzIipxe+Y0vesPPlyqcACY9ahFvgNoN/7qnZsbdmHvb7R9o+\n4bGohHRvJsfNEEuOMfTT7Gv0BInDku/k/HIL7CqDsLrdtlVVrVQ83HSRm72h\nVxboBQXVLhBw90fVIVQE7J7Zb28Cooprd+6oYh9vZ/FnS92odUV3/Xx57Fxs\npUa1xRKTZ+KJYO9vBnug2on6C9T1fL2aPHMCEw62zbCPiHKFbkGjWW5kub+W\nTQoCJfaeQEnvc/trZt2tj4gW29QmRcGm99pqGvxEqgdBrySjWGSGVizdzYE5\n420vpZfzBTiepIw6W9OXSt0k0uQJBhiUlZ71I5R0KwtYdEYCvOo2IL0YglmC\n6wsx\r\n=j//D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSOLFoQxfOtYoJeBOiV6tsdZB7ftntCCEPQo4Pu/laygIgCpxDofYxrNSE7Av1BrIXGhBCnDOOoiRcxWiwG/bfhVc="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.0.0_1547717226908_0.7617497324680409"},"_hasShrinkwrap":false},"4.0.1":{"name":"shopify-token","version":"4.0.1","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","engines":{"node":">=6.6.0"},"scripts":{"test":"c8 --reporter=lcov --reporter=text mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"c8":"^7.3.0","chai":"^4.2.0","mocha":"^8.1.3","nock":"^13.0.4","pre-commit":"^1.2.2"},"gitHead":"7b947de0e8cf5ac2d52bae46cb6f8155dd9bc6e1","_id":"shopify-token@4.0.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.0","dist":{"integrity":"sha512-CcvHj0g0CR9rpYCQbGDt/BUt2JL2BC9QVS15JnF8KeaNONjLalzXzXXvYPkhRnyIsiIKnJpZTXrdyypiQYvSTg==","shasum":"524370d52420015bab3e029af46eef1dba996174","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.0.1.tgz","fileCount":5,"unpackedSize":15777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHFDkCRA9TVsSAnZWagAAxJwQAKSh64p0GHPWWyZtElYn\nj8GE9MYXVeYMqyxaGDp703B45kezw7b4dgupND1Q9+cuOEiX6TUbSV0sSpGN\nW4wzp5UqpDemRH1FYa0cHehg/kb0bPgJ8PbvVZ81kFpZdQ3Fua+pf4R7JDHV\nTfFywcbEbmQKKnCJcuznJErloETaNVaAXLDEJ06ryfP3Xbe0MkF2y/2FWy3v\nLb6N7pssvUfi/DhXNRsM02sSjY1D8tQ/GIsyzXV2Q92ljUzH8HvjEQhEGzWd\nQrM+4FPTdtlWPmLfACmUqZJ0NhABvxMziagUmYXwqcHbm29XU+lIUIx4UccX\nFiKXO/thXncrxNFBkV9PvbEFDnq1g411Wc2gh0zvdNvpANa7Rxl8WiwWtQnY\nuUDTNsohO7DUV4Q4iXmw+imEMYws4qhy6FNwhTvNfyc9TOrh7yyMdvrA12/p\nKnYB8FBx7LW66SqlANkl5VnKh3xYi0KhFi+SurUhZHQJQb8VjBJlp78enENv\nwAcfPrILN1YmhAR5kuRYNH6rx1ezt8b7E5csFJLXH9rTVxbn6QrUvkjloKE+\nyZY7X3xLFQoOCw9Tjib+6A+ee68Sr3n8Uw6SxS0XJ7pTEbqwQw3rlgBY5Ge5\nAyTKBGtsDhS7qEJSnh8+8VhJsJZ7MrRHt4nYZZNgeAAOKph/KAtr1dJo102Q\nyHbM\r\n=BNm6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZaeZTFG+KsTnGIvVf52ie3lHk7+yvO/rNW6EtPdGMnAiA8cjCl3K1w1nP81hKmEmfZ+/9wv3eit81cy2STigc7zA=="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.0.1_1612468451817_0.19450914039854394"},"_hasShrinkwrap":false},"4.0.2":{"name":"shopify-token","version":"4.0.2","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","engines":{"node":">=6.6.0"},"scripts":{"test":"c8 --reporter=lcov --reporter=text mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"c8":"^7.3.0","chai":"^4.2.0","mocha":"^8.1.3","nock":"^13.0.4","pre-commit":"^1.2.2"},"gitHead":"12855f48ddf163b5f6f148d6ad9ebc4a6dec4818","_id":"shopify-token@4.0.2","_nodeVersion":"15.12.0","_npmVersion":"7.6.3","dist":{"integrity":"sha512-Sy7TpCqISBdPeOaE66o9IEZbuc3/IMqAVIrlMjPHaYqOBNspf4uRXpZrNjBUsoY9pSjPGM3rWE7smP7qxi1NiA==","shasum":"27ecd4c5fbc1ff520d6816fe9839c25347183dee","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.0.2.tgz","fileCount":5,"unpackedSize":15795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWj0FCRA9TVsSAnZWagAAJl8P+wYnxDf5VFVe3TwA7Yx+\njeKYY8glglV8gA5y5XFFUrXniteTlzOyE+bImPgBf5ceX3UL+r0yW/Dh76pN\nAs0WPA8CV0nmyC6j3ncOwOtDpouIKNfEB1i1e17llZmnqvm4wPlOYfQY/UFV\n1aFux8gUEKDPHH+NmIkP8PcNVKgSH5C42VLJqmxF6jvfdFnAr97mBENsPdxv\nMiTMwHpUHXpG2bXTmE0JhVyvNy9Q1Je3Sw/xNwHv2O3T41BFViudge/QOnOU\n35PWezwfFliR52uNRY06MwCuNUe5YWG+YbLvG1EgJmKh0hVTGpiK25DdF32e\nDgc455vL83XK7EXNNci6QvQV4/qnHO6ghqVVuHb6fHfs9IvUP6DEbcS8GntF\n2XDm1jldMGUQUKRe3CDLMq4/UXdE91RFs+nH4xClNGfOq7uVhSOsE0u36dl+\nGay/DA8sGhZKGSaE1o8oMpsl4RRfTK7qfCLnDiDKzscBT5eu10t0Ju75tadL\nnMbbFUIuoVvais1NDOOHPfZdqhT5dGeCm17ItYSPsw0CmqkXhCC78m/lsu1E\nxyUaRAZiofQjjX24f9sLOLrD30VfuCatlb+T4jqAI5lWO1Z3hUswAUiiFJPe\nqBEXj2SaefXnP8R5A1zosHk37twedj+9Aevq7BzMNjcOIzuYS+isoNkWeGhZ\nz++1\r\n=1rJl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOiNkaQxfVD83OXIH0yszd2DW33DTmXok4SfluS8UxRAiANlo4L9HoeLNCtMgWsAJP9oyCVTDJQAojmEvjnY/LvNg=="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.0.2_1616526597410_0.6928074920951646"},"_hasShrinkwrap":false},"4.0.3":{"name":"shopify-token","version":"4.0.3","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","engines":{"node":">=6.6.0"},"scripts":{"test":"c8 --reporter=lcov --reporter=text mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"c8":"^7.3.0","chai":"^4.2.0","mocha":"^8.1.3","nock":"^13.0.4","pre-commit":"^1.2.2"},"gitHead":"afe16075b4da6e387240f73f30179e1d14e8f1d2","_id":"shopify-token@4.0.3","_nodeVersion":"15.12.0","_npmVersion":"7.6.3","dist":{"integrity":"sha512-vTt3nN8/jYaiCOjLq2/uQ8BjIJU/wRcZ9U567fjA7nTF9ci+enfSwr0fmS+qJX+NHFCpw/svZfVWTu+SblXlww==","shasum":"881f752741421e5254eacccfe2cc19619cb03223","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.0.3.tgz","fileCount":5,"unpackedSize":16417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW5j/CRA9TVsSAnZWagAArhkP/0ZZYI+EqtYCpeta902J\n5cdm0tGIrhuDQYNLMQavfhcSi7Ur9EBDUDo2BKvaGSEA1zUB16Xzd4YlHib8\nGGhQkmxftd3bh3wbjOMKxk0XfiRKT3BpUvQWNoI9hSC+jawHfD6eu8/HtOal\nZ5h7Fb2JBiBknxTXOIxf6ETCDgU0FfMDdgnrgeCkTooGQKQMwCI4tfese22X\nYENebonROEHEn3NFlgCvN3QEPn53cO66q5rxWtLTu8G+xhMXx2eUrNxBP/iS\nJfDT2RqtcPxLCZB1LHq67YfkxQ7DOBAHVV4FFOP978POw2QZkVjOhR3wVErX\nsnsTpEMx8vJ6Aay5/VKTVmlHLnYPodsOEX2MD469TveJR7zZvvOAGUjBkoZx\nJAZ5YkhifHo8ypaCNi/JnOsdldV7kKmeGU7Cr4affdEp7gWbwC9r4MBXLxm6\nxI9uw/2pUj6tx4DKK0tlT7iHqanQsJljP3tLxQeRfwm2CbfoeVqmhA5gO9u6\n2Uy1dUFo4qcJAs2RPfu3nhhM5ohOXQ5FAZUkdz6RHr90FhWyDhj0FroftRse\nPJwzHjYhYNif/gBI7+Et2FSUqF+EUPHwxYwnEUECSQppR7FtY9m3XNZFIdGI\nN2s53apJfdZ4DS+NH3+R6gKF935szh57B0o0KYOBT4DvVt5XnUEupY7CPOWN\nwxql\r\n=GBsB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyB3L1QVxWykC79ds93fF0aY1q3wQqKMX3tQ4sxlRGggIgV0KXYjC1roOALHyLk946Vx0bFV/LzgV8BfK6LXSEmvw="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.0.3_1616615679290_0.879909251426565"},"_hasShrinkwrap":false},"4.0.4":{"name":"shopify-token","version":"4.0.4","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","engines":{"node":">=6.6.0"},"scripts":{"test":"c8 --reporter=lcov --reporter=text mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"c8":"^7.3.0","chai":"^4.2.0","mocha":"^8.1.3","nock":"^13.0.4","pre-commit":"^1.2.2"},"gitHead":"00bc7f8dcf5c8b716b3cb348235d025ca2a57ff2","_id":"shopify-token@4.0.4","_nodeVersion":"16.1.0","_npmVersion":"7.11.2","dist":{"integrity":"sha512-wkAdXSr1T3kNf7BALXG9iybGhDimDts6aJSbMVNFqPu+seQaeHsgVN4hgUV9A0d/WkpByf4obNUMzVvht9rIkw==","shasum":"6b31928816f31c58a02402b5f1c6596cbcda698c","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.0.4.tgz","fileCount":5,"unpackedSize":16892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglWofCRA9TVsSAnZWagAAgyoP/RWLbXSa4quYN+ez+A84\nFfhi5UtfWnMi7FVzviN4uQSg3/Kbn6/fawwfU3uhKOVzCK4DntLDkEQVm6HV\n6SQ+kFyRJX2G18UksapEQCD43WtK9RleRsppqIiVWCbC1JKMcCievQgd/fgw\nApkLyg2LtA3fHEORMJxvzyz4Gx56NXX7fhe/Go1kX3lFd2Wsljmv7P7Zx2iB\nwH3hShK9czNdSEHbRQ5Yru60y3kzMFWTlxmMJD4cJvif6UzvANunYsvK4v4B\n75jgd8SSExUYfEp3J5esP6a+wrBSF5VM8QSvklNAfeg7a91QMpTldKEpWMv9\n2jAxdYUidBLGtu+8jYiqyhTQOTPoNqWIHLByoC9EIy1uqNneQwbm1fA6mWh4\nboeO7TvlTJzni8ymcwxBB2LiFlosJXllPKdcnhAqaeOJoHBj62n0a1T3ew0d\nIlp5AToifx6v90XNkUJLEkaxFE9OpTbr/DaTYVTcuR6lWlvgzEfec5WAm/6J\ndL6K1KJg/9qU+vzA3d77ciwWt8HF0I0DAPeSwIch5dLSaa+sBwZ7/702PzES\nZE8flg0P59bMMFCwhKkVII3x6xX//n+91Nv4A3kaVhBYzDJPLfAmJhjSIj9z\nysobBHISZgig1SjOU1R4l9+cvAnWMCGhR/dxVCloM428ASJmnpdx4gn8nHm/\nxSMk\r\n=7Fac\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQ+x//Czejc12BIw7FYE41uvf7GOhdl9xCu1Q1463WoAiEA9NS63wcY+XEpZU+EqC/QhShKtctcrIJWS+oT0S8EWxc="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.0.4_1620404767338_0.9674199207778791"},"_hasShrinkwrap":false},"4.1.0":{"name":"shopify-token","version":"4.1.0","description":"Get an OAuth 2.0 access token for the Shopify API with ease","homepage":"https://github.com/lpinca/shopify-token","bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"license":"MIT","main":"index.js","engines":{"node":">=6.6.0"},"scripts":{"test":"c8 --reporter=lcov --reporter=text mocha"},"types":"types","keywords":["shopify","token","api","oauth"],"devDependencies":{"c8":"^7.3.0","chai":"^4.2.0","mocha":"^10.0.0","nock":"^13.0.4","pre-commit":"^1.2.2"},"gitHead":"49386ca995afe283b8b6b2232870eb12c5306ff0","_id":"shopify-token@4.1.0","_nodeVersion":"19.7.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-LWHFmkD6f9bplGOm/oIiekI3JnIuOhnlGn4e0YUnowfxaNf86wT1Zibd9IcYMht68MRDr0WG2oZa7LVnImydpQ==","shasum":"a443c2be948e49e2642745bf6cd613b9f2265374","tarball":"https://registry.npmjs.org/shopify-token/-/shopify-token-4.1.0.tgz","fileCount":5,"unpackedSize":17420,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyAhp2WTMfQ3Jdbn54RvuEQwEu1Do+9R8FjXoCxNX5jAiAFZ9CDzswPiVuOLT25TgsdCpFCgteuXw32nMdzyNQbwg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDL2qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYzQ/8Dshb/xTk2P6jBzmbpCsoMmWxxdueGJDdOoYVnTJopjBxrxBM\r\nhlwSR/tg6KheaCbtVDGxEzQDVVHjZFQ0NEip8kl22Ew8qbLinQPeb0R5a6A1\r\niFLp9mrN0GMFxAyLY+Nu+xnneM7MYuqZz85IzehhI98BAdCgjpPoRGscLrre\r\nGVLKWa21K6XOGCdxUjor1S5n5vRGZ8A1njDbzT2OstHaWsbjDJNW4YII41ik\r\nxLR9QiBLDtwD3e2lm15LJKN2fcWRDWCtUb6mxiBwWzxQ+VSkSKQZEVyDfXVe\r\nBIrEDeEHxTnX4Ea+h1DEibmmVqwaxG92+HCecT8OmmBJDDhYvr5WT8N7aZTs\r\noMZ7K1yu5g1XoHVo1POoi89xnEL1duGiFS2ehfwNZLVCY7PHD/QKWgoA3KkS\r\nRqrVtrFn3/l69Rpr1RCjH0eiArQZKZVtlx6ntQ4Ifs7aKnB/52qiL15D1bXZ\r\nIm9sYyIOFO1GaBF6HGuYYxZAvFiGF1XUK0/j/ePnU1QeNN4l1XL8lq1J8PHy\r\nxUFz6UALuFnYPhWwHB6u/QjGxjhR+typqd2Q9/g6cr3VIS3LDYZK1yT5UBHv\r\nUTRHsALa/xfBTM8zdvkSFEbp0vNGVyV1nTOXPMW6iLuLGCBI5hnDH/8EB0Wi\r\nEFnebctgkqqbrU4QIs90nZSCDuPu6CGDBn4=\r\n=XKfQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shopify-token_4.1.0_1678556585983_0.5465391242770565"},"_hasShrinkwrap":false}},"readme":"# shopify-token\n\n[![Version npm][npm-shopify-token-badge]][npm-shopify-token]\n[![Build Status][ci-shopify-token-badge]][ci-shopify-token]\n[![Coverage Status][coverage-shopify-token-badge]][coverage-shopify-token]\n\nThis module helps you retrieve an access token for the Shopify REST API. It\nprovides some convenience methods that can be used when implementing the [OAuth\n2.0 flow][shopify-oauth-doc]. No assumptions are made about your server-side\narchitecture, allowing the module to easily adapt to any setup.\n\n## Install\n\n```\nnpm install --save shopify-token\n```\n\n## API\n\nThe module exports a class whose constructor takes an options object.\n\n### `new ShopifyToken(options)`\n\nCreates a new `ShopifyToken` instance.\n\n#### Arguments\n\n- `options` - A plain JavaScript object, e.g. `{ apiKey: 'YOUR_API_KEY' }`.\n\n#### Options\n\n- `apiKey` - Required - A string that specifies the API key of your app.\n- `sharedSecret` - Required - A string that specifies the shared secret of your\n  app.\n- `redirectUri` - Required - A string that specifies the URL where you want to\n  redirect the users after they authorize the app.\n- `scopes` - Optional - An array of strings or a comma-separated string that\n  specifies the list of scopes e.g. `'read_content,read_themes'`. Defaults to\n  `'read_content'`.\n- `timeout` - Optional - A number that specifies the milliseconds to wait for\n  the server to send a response to the HTTPS request initiated by the\n  `getAccessToken` method before aborting it. Defaults to 60000, or 1 minute.\n- `accessMode` - Optional - A string representing the [API access\n  modes][api-access-mode]. Set this option to `'per-user'` to receive an access\n  token that respects the user's permission level when making API requests\n  (called online access). This is strongly recommended for embedded apps.\n  Defaults to offline access mode.\n- `agent` - Optional - An HTTPS agent which will be passed to the HTTPS\n  request made for obtaining the auth token. This is useful when trying to\n  obtain a token from a server that has restrictions on internet access.\n\n#### Return value\n\nA `ShopifyToken` instance.\n\n#### Exceptions\n\nThrows a `Error` exception if the required options are missing.\n\n#### Example\n\n```js\nconst ShopifyToken = require('shopify-token');\n\nconst shopifyToken = new ShopifyToken({\n  sharedSecret: '8ceb18e8ca581aee7cad1ddd3991610b',\n  redirectUri: 'http://localhost:8080/callback',\n  apiKey: 'e74d25b9a6f2b15f2836c954ea8c1711'\n});\n```\n\n### `shopifyToken.generateNonce()`\n\nGenerates a random nonce.\n\n#### Return value\n\nA string representing the nonce.\n\n#### Example\n\n```js\nconst nonce = shopifyToken.generateNonce();\n\nconsole.log(nonce);\n// => 212a8b839860d1aefb258aaffcdbd63f\n```\n\n### `shopifyToken.generateAuthUrl(shop[, scopes[, nonce[, accessMode]]])`\n\nBuilds and returns the authorization URL where you should redirect the user.\n\n#### Arguments\n\n- `shop` - A string that specifies the name of the user's shop.\n- `scopes` - An optional array of strings or comma-separated string to specify\n  the list of scopes. This allows you to override the default scopes.\n- `nonce` - An optional string representing the nonce. If not provided it will\n  be generated automatically.\n- `accessMode` - An optional string dictating the API access mode. If not\n  provided the access mode defined by the `accessMode` constructor option will\n  be used.\n\n#### Return value\n\nA string representing the URL where the user should be redirected.\n\n#### Example\n\n```js\nconst url = shopifyToken.generateAuthUrl('dolciumi');\n\nconsole.log(url);\n// => https://dolciumi.myshopify.com/admin/oauth/authorize?scope=read_content&state=7194ee27dd47ac9efb0ad04e93750e64&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Fcallback&client_id=e74d25b9a6f2b15f2836c954ea8c1711\n```\n\n### `shopifyToken.verifyHmac(query)`\n\nEvery request or redirect from Shopify to the client server includes a hmac\nparameter that can be used to ensure that it came from Shopify. This method\nvalidates the hmac parameter.\n\n#### Arguments\n\n- `query` - The parsed query string object.\n\n#### Return value\n\n`true` if the hmac is valid, else `false`.\n\n#### Example\n\n```js\nconst ok = shopifyToken.verifyHmac({\n  hmac: 'd1c59b480761bdabf7ee7eb2c09a3d84e71b1d37991bc2872bea8a4c43f8b2b3',\n  signature: '184559898f5bbd1301606e7919c6e67f',\n  state: 'b77827e928ee8eee614b5808d3276c8a',\n  code: '4d732838ad8c22cd1d2dd96f8a403fb7',\n  shop: 'dolciumi.myshopify.com',\n  timestamp: '1452342558'\n});\n\nconsole.log(ok);\n// => true\n```\n\n### `shopifyToken.getAccessToken(hostname, code)`\n\nExchanges the authorization code for a permanent access token.\n\n#### Arguments\n\n- `hostname` - A string that specifies the hostname of the user's shop. e.g.\n  `foo.myshopify.com`. You can get this from the `shop` parameter passed by\n  Shopify in the confirmation redirect.\n- `code` - The authorization Code. You can get this from the `code` parameter\n  passed by Shopify in the confirmation redirect.\n\n#### Return value\n\nA `Promise` which gets resolved with an access token and additional data. When\nthe exchange fails, you can read the HTTPS response status code and body from\nthe `statusCode` and `responseBody` properties which are added to the error\nobject.\n\n#### Example\n\n```js\nconst code = '4d732838ad8c22cd1d2dd96f8a403fb7';\nconst hostname = 'dolciumi.myshopify.com';\n\nshopifyToken\n  .getAccessToken(hostname, code)\n  .then((data) => {\n    console.log(data);\n    // => { access_token: 'f85632530bf277ec9ac6f649fc327f17', scope: 'read_content' }\n  })\n  .catch((err) => console.err(err));\n```\n\n## License\n\n[MIT](LICENSE)\n\n[api-access-mode]: https://shopify.dev/apps/auth/access-modes\n[npm-shopify-token-badge]: https://img.shields.io/npm/v/shopify-token.svg\n[npm-shopify-token]: https://www.npmjs.com/package/shopify-token\n[ci-shopify-token-badge]:\n  https://img.shields.io/github/actions/workflow/status/lpinca/shopify-token/ci.yml?branch=master&label=CI\n[ci-shopify-token]:\n  https://github.com/lpinca/shopify-token/actions?query=workflow%3ACI+branch%3Amaster\n[coverage-shopify-token-badge]:\n  https://img.shields.io/coveralls/lpinca/shopify-token/master.svg\n[coverage-shopify-token]:\n  https://coveralls.io/r/lpinca/shopify-token?branch=master\n[shopify-oauth-doc]: https://shopify.dev/apps/auth/oauth\n","maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"time":{"modified":"2023-03-11T17:43:06.262Z","created":"2016-01-05T17:10:09.261Z","1.0.0":"2016-01-05T17:10:09.261Z","1.0.1":"2016-01-09T16:56:35.352Z","2.0.0":"2016-09-07T06:23:29.486Z","2.1.0":"2016-09-19T10:54:27.222Z","3.0.0":"2016-11-22T09:30:40.232Z","3.0.1":"2017-04-21T16:11:38.027Z","3.0.2":"2018-02-23T20:59:45.700Z","3.0.3":"2018-12-05T07:40:49.938Z","4.0.0":"2019-01-17T09:27:07.003Z","4.0.1":"2021-02-04T19:54:12.157Z","4.0.2":"2021-03-23T19:09:57.545Z","4.0.3":"2021-03-24T19:54:39.401Z","4.0.4":"2021-05-07T16:26:07.460Z","4.1.0":"2023-03-11T17:43:06.186Z"},"homepage":"https://github.com/lpinca/shopify-token","keywords":["shopify","token","api","oauth"],"repository":{"type":"git","url":"git+https://github.com/lpinca/shopify-token.git"},"author":{"name":"Luigi Pinca"},"bugs":{"url":"https://github.com/lpinca/shopify-token/issues"},"license":"MIT","readmeFilename":"README.md","users":{"stevomccormack":true}}