{"_id":"auth0-spa-js","_rev":"141-606d97264b3354c14584dc29cc3e5987","name":"auth0-spa-js","dist-tags":{"latest":"1.6.5"},"versions":{"1.6.0":{"name":"auth0-spa-js","version":"1.6.0","keywords":["auth0","login","Authorization Code Grant Flow","PKCE","Single Page Application authentication","SPA authentication"],"author":{"name":"auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.0","maintainers":[{"name":"davewm","email":"dwmartin41@gmail.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"ccu":{"cdn":"https://cdn.auth0.com","name":"auth0-spa-js","bucket":"assets.us.auth0.com","digest":{"hashes":["sha384"],"extensions":[".js"]},"localPath":"dist","mainBundleFile":"auth0-spa-js.production.js"},"dist":{"shasum":"69aba34f3cd7efbb3648798e37dde6a352afd749","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.0.tgz","fileCount":15,"integrity":"sha512-R4Ju5i6InBcHVqK+genkHhBcW7QGuE/Z4NZgaMbHcXT52o0FpPjrCarwOFSJ6mQrk7zmXkgIgRueILQRtHP0pg==","signatures":[{"sig":"MEQCIHQdyF+RkK9cHD/J2AbUM5C0+D6w1FHivd0JMVoPeR8QAiAe+Ns6Gh05KznyNsMDE8skkwPNHrv6q69ystXzNCL+kw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3ZrWCRA9TVsSAnZWagAAUMEP/3h3yzdQ7yrQ7hcfHDWP\nSC+Y4wo8G0NePs0SvBoGB+lFv9+aEk05S2dPMyOuJoDMnzrMexk1d+nGdH9d\nZjac0PncRmxAxF6zyezX7PsiBhFxlbSaXvCGmaxRadfIOO36QQWCIOLhdQ63\noK1ORIlpppBSvMQJpQCeEHOisAea3N1ywmAoJNMNPKSRp3a+wuEtFPije/Cl\nzk26UDpl3ftMI4vvcHAPCklaXTYa+tnSO0TenC6gKGHM8DbkpJYA+NvGXP6/\n7usCWI7FUk+QigWMBTY3BQXFF3n3Bw6QeXtfZBBvjK4i+BqJjBwLn+FdC/xt\nElyPXv/ZHOKJJheLLI0lYp4sDu19AyqFSDsQjGShRfyEQ5wBKpYaQgTmUyny\nDGkUjsurHlp317qRVVVNbrhtuzHWGS2lyIM5n3UlbbWmgck2H4ekZNlmoOBO\ngY1oBTMvvJ51aNU8FVZ2Z8Gm1i5PbjZV9jJ3hGkODHkHBuB0glK23fksZ4dB\nx/x7u8RcbGxUn66j3gkzNxwsO0RuvE690OPxDBObDJchz04gTmjPPPRAdJJh\ngp72Y85Q+qoSWOxnez9BPLB4sQFGpFDBddzXTeQCrhwWI0D3lZhsgyATRUAJ\nrzD+GTT+rkHTikFXHsXKfu4xNB91PRtBLS4tci2MQ+dtQn+wSXnOtM/SUpRj\njJfF\r\n=TIcu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/lib/auth0-spa-js.cjs.js","_from":".","types":"dist/typings/index.d.ts","module":"dist/auth0-spa-js.production.esm.js","_shasum":"69aba34f3cd7efbb3648798e37dde6a352afd749","browser":"dist/auth0-spa-js.production.js","gitHead":"f0512fd8985ce53f52085b3cd3feec42e7ed219a","scripts":{"dev":"rimraf dist && rollup -c --watch","docs":"typedoc --options ./typedoc.js --module commonjs","test":"jest --coverage","build":"rimraf dist && rollup -m -c --environment NODE_ENV:production","start":"npm run dev","prepack":"npm run build && npm run test:es-check && npm run test && node ./scripts/prepack","release":"node ./scripts/release","precommit":"pretty-quick --staged","test:watch":"jest --coverage --watch","build:stats":"npm run build -- --environment WITH_STATS:true && open stats.html","publish:cdn":"ccu --trace","lint:security":"eslint ./src --ext ts --no-eslintrc --config ./.eslintrc.security","test:es-check":"npm run test:es-check:es5 && npm run test:es-check:es2015:module","test:integration":"concurrently --raw --kill-others --success first npm:test:integration:server npm:test:integration:tests","print-bundle-size":"node ./scripts/print-bundle-size","test:es-check:es5":"es-check es5 'dist/auth0-spa-js.production.js'","test:integration:tests":"wait-on http://localhost:3000/ && cypress run","test:watch:integration":"concurrently --raw npm:dev 'cypress open'","test:integration:server":"cp static/index.html dist/index.html && serve ./dist/ -p 3000 -n","test:es-check:es2015:module":"es-check es2015 --module 'dist/auth0-spa-js.production.esm.js'"},"_npmUser":{"name":"davewm","email":"dwmartin41@gmail.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"3.5.2","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.10.0","dependencies":{"core-js":"^3.2.1","unfetch":"^4.1.0","es-cookie":"^1.2.0","promise-polyfill":"^8.1.3","browser-tabs-lock":"^1.2.1","fast-text-encoding":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"pem":"^1.14.2","qss":"^2.0.3","jest":"^24.9.0","husky":"^3.0.0","serve":"^11.1.0","eslint":"^6.0.1","rimraf":"^3.0.0","rollup":"^1.17.0","tslint":"^5.18.0","cypress":"^3.4.0","ts-jest":"^24.0.2","typedoc":"^0.15.0","wait-on":"^3.3.0","es-check":"^5.0.0","prettier":"^1.18.2","cli-table":"^0.3.1","gzip-size":"^5.1.1","typescript":"^3.6.4","@types/jest":"^24.0.15","concurrently":"^4.1.1","jsonwebtoken":"^8.5.1","pretty-quick":"^1.11.1","@types/cypress":"^1.1.3","idtoken-verifier":"^1.4.1","rollup-plugin-serve":"^1.0.1","rollup-plugin-terser":"^5.1.1","rollup-plugin-commonjs":"^10.0.1","tslint-config-security":"^1.16.0","rollup-plugin-livereload":"^1.0.1","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^2.5.0","@typescript-eslint/parser":"^2.0.0","rollup-plugin-typescript2":"^0.23.0","rollup-plugin-node-resolve":"^5.2.0","@auth0/component-cdn-uploader":"github:auth0/component-cdn-uploader#v2.2.2","@typescript-eslint/eslint-plugin-tslint":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.0_1574804181428_0.8220400246594488","host":"s3://npm-registry-packages"}},"1.6.1":{"name":"auth0-spa-js","version":"1.6.1","keywords":["auth0","login","Authorization Code Grant Flow","PKCE","Single Page Application authentication","SPA authentication"],"author":{"name":"auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.1","maintainers":[{"name":"davewm","email":"dwmartin41@gmail.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"ccu":{"cdn":"https://cdn.auth0.com","name":"auth0-spa-js","bucket":"assets.us.auth0.com","digest":{"hashes":["sha384"],"extensions":[".js"]},"localPath":"dist","mainBundleFile":"auth0-spa-js.production.js"},"dist":{"shasum":"5889dda29799e9e8e33ec0d08c625634cca69064","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.1.tgz","fileCount":34,"integrity":"sha512-uejtigmF3gGjjlUC6N5/P15Y2Onton3Tq/qwyCR2KBz8kQS0tqDsdDrjDfG5UQde69VLC4+AKRlC6waaBA5InQ==","signatures":[{"sig":"MEUCIQDQK/maphMsFUpWYRfaVS12QqaeP6ZqfRnzKxNzP/aPJgIgFLk3c/aZDJT6YwPzuGsZW4rJ+R9GdAu8ZHYimA9rqFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1208186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3Z9+CRA9TVsSAnZWagAAEDIP/iheN2QQgOhU5gJ87PX5\nP24uh9IvDGLvoixWxb1mQLFtgHJ+VPk/kYaAybwY6LX0eA/sn0CkPP9CuHpZ\n5wk8GJJBeWEhzx5JSZcI3tCrHDe4VQf1ZXEHwLMhoEgeZKlLsxfSDV1JT5q/\nEtAtrL6R+lPCKmDpYEq+NG+NTjbDC36e1FedNmsjgsAwUyJz3hXjr6G9PzTg\nHiQyNWhWXPVzA6iRdtVWxncGphc8qjKg6Z0W8UaHfmDWgnN+tssdB33LH0nI\n4cBazTktG6ivebpefEki8Z14DkwPfID7GE/Xnj4k5CO8v4YkDkheEBHCjeMK\nxewdQeVczF+SeKzS5ohNOQKTPAjpBm5MEGcF8iJZfHpkk36CxJvQkAPXXa31\nLz+07C8anGtoBcf4lqKah+CgLZHg7FIzQdvXXBQ7Bc77gCfm5OEZxSAggM5i\nuC6HgxhTRV8PqKTWIM/I854ZAmOoUFPnX8BBFlS8rno3QJZyAeHldCS/vOCl\nPu3VxLj0QO2RZBEQAuJZt9XD6cEY+MoqNf+8aJQVUJ9naWrRv1oKbnU0Sxz5\ncgWxNmUCFgcBvfretIW7tyLrnjoxnRfvrivRAEZwErawHppYpF6J7YHWzZdz\nuokhAQL+/IHDTJcWNa/z1HQxWGglR/fSQvS5gMkpIGDpL5mYz/W/vG6IU8fk\nFbps\r\n=Gpyd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/lib/auth0-spa-js.cjs.js","_from":".","types":"dist/typings/index.d.ts","module":"dist/auth0-spa-js.production.esm.js","_shasum":"5889dda29799e9e8e33ec0d08c625634cca69064","browser":"dist/auth0-spa-js.production.js","gitHead":"f0512fd8985ce53f52085b3cd3feec42e7ed219a","scripts":{"dev":"rimraf dist && rollup -c --watch","docs":"typedoc --options ./typedoc.js --module commonjs","test":"jest --coverage","build":"rimraf dist && rollup -m -c --environment NODE_ENV:production","start":"npm run dev","prepack":"npm run build && npm run test:es-check && npm run test && node ./scripts/prepack","release":"node ./scripts/release","precommit":"pretty-quick --staged","test:watch":"jest --coverage --watch","build:stats":"npm run build -- --environment WITH_STATS:true && open stats.html","publish:cdn":"ccu --trace","lint:security":"eslint ./src --ext ts --no-eslintrc --config ./.eslintrc.security","test:es-check":"npm run test:es-check:es5 && npm run test:es-check:es2015:module","test:integration":"concurrently --raw --kill-others --success first npm:test:integration:server npm:test:integration:tests","print-bundle-size":"node ./scripts/print-bundle-size","test:es-check:es5":"es-check es5 'dist/auth0-spa-js.production.js'","test:integration:tests":"wait-on http://localhost:3000/ && cypress run","test:watch:integration":"concurrently --raw npm:dev 'cypress open'","test:integration:server":"cp static/index.html dist/index.html && serve ./dist/ -p 3000 -n","test:es-check:es2015:module":"es-check es2015 --module 'dist/auth0-spa-js.production.esm.js'"},"_npmUser":{"name":"davewm","email":"dwmartin41@gmail.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"3.5.2","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.10.0","dependencies":{"core-js":"^3.2.1","unfetch":"^4.1.0","es-cookie":"^1.2.0","promise-polyfill":"^8.1.3","browser-tabs-lock":"^1.2.1","fast-text-encoding":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"pem":"^1.14.2","qss":"^2.0.3","jest":"^24.9.0","husky":"^3.0.0","serve":"^11.1.0","eslint":"^6.0.1","rimraf":"^3.0.0","rollup":"^1.17.0","tslint":"^5.18.0","cypress":"^3.4.0","ts-jest":"^24.0.2","typedoc":"^0.15.0","wait-on":"^3.3.0","es-check":"^5.0.0","prettier":"^1.18.2","cli-table":"^0.3.1","gzip-size":"^5.1.1","typescript":"^3.6.4","@types/jest":"^24.0.15","concurrently":"^4.1.1","jsonwebtoken":"^8.5.1","pretty-quick":"^1.11.1","@types/cypress":"^1.1.3","idtoken-verifier":"^1.4.1","rollup-plugin-serve":"^1.0.1","rollup-plugin-terser":"^5.1.1","rollup-plugin-commonjs":"^10.0.1","tslint-config-security":"^1.16.0","rollup-plugin-livereload":"^1.0.1","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^2.5.0","@typescript-eslint/parser":"^2.0.0","rollup-plugin-typescript2":"^0.23.0","rollup-plugin-node-resolve":"^5.2.0","@auth0/component-cdn-uploader":"github:auth0/component-cdn-uploader#v2.2.2","@typescript-eslint/eslint-plugin-tslint":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.1_1574805373911_0.8325298394344978","host":"s3://npm-registry-packages"}},"1.6.2":{"name":"auth0-spa-js","version":"1.6.2","keywords":["auth0","login","Authorization Code Grant Flow","PKCE","Single Page Application authentication","SPA authentication"],"author":{"name":"auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.2","maintainers":[{"name":"davewm","email":"dwmartin41@gmail.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"ccu":{"cdn":"https://cdn.auth0.com","name":"auth0-spa-js","bucket":"assets.us.auth0.com","digest":{"hashes":["sha384"],"extensions":[".js"]},"localPath":"dist","mainBundleFile":"auth0-spa-js.production.js"},"dist":{"shasum":"d11838b7faeeeecf27637368fd2b2af9d79c12f2","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.2.tgz","fileCount":34,"integrity":"sha512-/NsbzEu8zjDtsspwiHErasamExECOMmste2pemaIZ7FvI2q954AlSMLWYL1yv/PQVua19Zgq8yihzYev0zxPjw==","signatures":[{"sig":"MEYCIQDxOtgLZowYMKXKgeB3g14CDecRKOle953jqbdEHvZoOQIhAJ0811uLg97UvqVJXDgeR5NiQzUFKa0NS3muUR0kKCVK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1207019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3aM9CRA9TVsSAnZWagAAseIP/i2fVqPHM0EcxQTTX5to\niZHAlaON2Xh7qdrXIowiBb5cdLVQsSaObHkYz15tr5GtG/qgGHMQzF2XgOHd\n3wWvP7LOdkVYOWi1NOCf80kMJBpg/7Yf6IMomlhzQfQQx4T4hCMW5940V2MA\nxyCOwci/26NNxcvG37o50Lqlm6tK/YoW0XPxj3DO3beTiZswW/T4FqmI2VmX\ny54iFluAX3ZBXabx2Q0ARvG3QDO155GEyNUYEUcQjVHQJxXnRua1dkeHOmHP\nPmJ0UN7R88X3ycc5h9hZlfhMSPaOqDkuJRjDEs/Vcz171MRuiyaUzPJlMpZa\nmZK34yaYF6UYu7E4poDC8YDbLTvn++TvtUVNBh0TNcuysq+8R+NXbgTYttK4\nypklN7mJkUZuWRw7jaJjBXsYJVhTNXbZsyg1QhV5/1jAykE55O/iwNoi85W1\nj37zThILpXROY/cei7LS6WlRAuszroXWhLlghsgdHDBYrV3dwmG5wdgNCnLb\nQbFrNvd9JrHZAmPovNu0u0eTcgPZ+2UZLNZ9ENQdfBcvqetZ8pr6eZ/UMM+a\nuXQuTk2AtHvQWJnOysxzv4KmYyMVctAQiRmQovEryOWMxKkL6mhTXvBCRks1\nxpurCzZC1I5UkrQtBNRjAdsMqetMFQT3WmFdfKt3OrvBcWB16agzXlKGz9yA\nFwOr\r\n=/lqw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/lib/auth0-spa-js.cjs.js","_from":".","types":"dist/typings/index.d.ts","module":"dist/auth0-spa-js.production.esm.js","_shasum":"d11838b7faeeeecf27637368fd2b2af9d79c12f2","browser":"dist/auth0-spa-js.production.js","gitHead":"f0512fd8985ce53f52085b3cd3feec42e7ed219a","scripts":{"dev":"rimraf dist && rollup -c --watch","docs":"typedoc --options ./typedoc.js --module commonjs","test":"jest --coverage","build":"rimraf dist && rollup -m -c --environment NODE_ENV:production","start":"npm run dev","prepack":"npm run build && npm run test:es-check && npm run test && node ./scripts/prepack","release":"node ./scripts/release","precommit":"pretty-quick --staged","test:watch":"jest --coverage --watch","build:stats":"npm run build -- --environment WITH_STATS:true && open stats.html","publish:cdn":"ccu --trace","lint:security":"eslint ./src --ext ts --no-eslintrc --config ./.eslintrc.security","test:es-check":"npm run test:es-check:es5 && npm run test:es-check:es2015:module","test:integration":"concurrently --raw --kill-others --success first npm:test:integration:server npm:test:integration:tests","print-bundle-size":"node ./scripts/print-bundle-size","test:es-check:es5":"es-check es5 'dist/auth0-spa-js.production.js'","test:integration:tests":"wait-on http://localhost:3000/ && cypress run","test:watch:integration":"concurrently --raw npm:dev 'cypress open'","test:integration:server":"cp static/index.html dist/index.html && serve ./dist/ -p 3000 -n","test:es-check:es2015:module":"es-check es2015 --module 'dist/auth0-spa-js.production.esm.js'"},"_npmUser":{"name":"davewm","email":"dwmartin41@gmail.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"3.5.2","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.10.0","dependencies":{"core-js":"^3.2.1","unfetch":"^4.1.0","es-cookie":"^1.2.0","promise-polyfill":"^8.1.3","browser-tabs-lock":"^1.2.1","fast-text-encoding":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"pem":"^1.14.2","qss":"^2.0.3","jest":"^24.9.0","husky":"^3.0.0","serve":"^11.1.0","eslint":"^6.0.1","rimraf":"^3.0.0","rollup":"^1.17.0","tslint":"^5.18.0","cypress":"^3.4.0","ts-jest":"^24.0.2","typedoc":"^0.15.0","wait-on":"^3.3.0","es-check":"^5.0.0","prettier":"^1.18.2","cli-table":"^0.3.1","gzip-size":"^5.1.1","typescript":"^3.6.4","@types/jest":"^24.0.15","concurrently":"^4.1.1","jsonwebtoken":"^8.5.1","pretty-quick":"^1.11.1","@types/cypress":"^1.1.3","idtoken-verifier":"^1.4.1","rollup-plugin-serve":"^1.0.1","rollup-plugin-terser":"^5.1.1","rollup-plugin-commonjs":"^10.0.1","tslint-config-security":"^1.16.0","rollup-plugin-livereload":"^1.0.1","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^2.5.0","@typescript-eslint/parser":"^2.0.0","rollup-plugin-typescript2":"^0.23.0","rollup-plugin-node-resolve":"^5.2.0","@auth0/component-cdn-uploader":"github:auth0/component-cdn-uploader#v2.2.2","@typescript-eslint/eslint-plugin-tslint":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.2_1574806333231_0.7232366103230703","host":"s3://npm-registry-packages"}},"1.6.3":{"name":"auth0-spa-js","version":"1.6.3","keywords":["auth0","login","Authorization Code Grant Flow","PKCE","Single Page Application authentication","SPA authentication"],"author":{"name":"auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.3","maintainers":[{"name":"davewm","email":"dwmartin41@gmail.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"ccu":{"cdn":"https://cdn.auth0.com","name":"auth0-spa-js","bucket":"assets.us.auth0.com","digest":{"hashes":["sha384"],"extensions":[".js"]},"localPath":"dist","mainBundleFile":"auth0-spa-js.production.js"},"dist":{"shasum":"be8a7137585717e11fb931d2b885d947fa8c2d37","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.3.tgz","fileCount":34,"integrity":"sha512-uX1FoPq8/rWtQBCYTBaN2KGrevkYr4xAoQtLQPQAjT0dYBgkQ5cqLBZ32VbDhUbbG9EBIrvLe12ADjpwxlUSWg==","signatures":[{"sig":"MEQCIFDu6bKIfu1x4gkNTUAWZjq4oMot4Ak54t/UjDeRFezRAiApFfsycE2Cr61TIYteL8X9AYG6qcemY0ar432NXyqVzg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1204533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3aRdCRA9TVsSAnZWagAAIc0P/1A/K9HV6BVPL2RK1L8B\nF3Zsy9+SB6vRNf1LlcXDlQ/wYuMNhHLJMqSNp4eR829g9Q3HI6QfxiXjZrGP\nM0GjRhWKF01q05hNT0ozBN28G1V3mamZKIyHoSDMR0XyqqN5Bfqzzwbn95sG\nEZY1SVLk47GguRtRgzHEUhlK3VuZ00U5pdSl3bRLjP+zoDE2LtZWHPmJ4Jpi\nfthG05L9zoqIG2EK7We4kQl4WuH6gGpYRQ9DpgKofmvLlZC5CE23Zoyc2jgj\nycxMTwV8m8NqhSkpZCNHHFVEY1U+vmykFietLUJVXVrclq866jLlfi9YHDbb\nETElKUP+FBbWH+aeHbmj+2EOt2AynVH6WMsdwvLz7XEU3DcejQKD8gpmy2yS\nLKXUn4K1A01rPu5e3gmVbHYY1JLjmoE5yG7/Ekcp+IjhbC+XOWE+DN3uMANM\nYPwtmTA1+j2YszXp0+AgFGsr2lxgpEkgSoQ3RKx7m46/Md2lFWc85WzDrsNj\nVUZM9ux6W+fWuLFQI3ERIYw3NkUEFvRFvyXFQvBAyeIQa5LExK+z20biyZs7\na4XaYpMt6oDPwfD7MY5GyZA2v9l7nXGoajC5VdhD+jJziNoLfWIMjWZK1um4\nTHHPteqllEPkiAyIush3Th3+rjI7Bm5CpZHN4DsE8uCdKp/Bc90JSv4C6vL1\n8gsQ\r\n=Kbb3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/lib/auth0-spa-js.cjs.js","_from":".","types":"dist/typings/index.d.ts","module":"dist/auth0-spa-js.production.esm.js","_shasum":"be8a7137585717e11fb931d2b885d947fa8c2d37","browser":"dist/auth0-spa-js.production.js","gitHead":"f0512fd8985ce53f52085b3cd3feec42e7ed219a","scripts":{"dev":"rimraf dist && rollup -c --watch","docs":"typedoc --options ./typedoc.js --module commonjs","test":"jest --coverage","build":"rimraf dist && rollup -m -c --environment NODE_ENV:production","start":"npm run dev","prepack":"npm run build && npm run test:es-check && npm run test && node ./scripts/prepack","release":"node ./scripts/release","precommit":"pretty-quick --staged","test:watch":"jest --coverage --watch","build:stats":"npm run build -- --environment WITH_STATS:true && open stats.html","publish:cdn":"ccu --trace","lint:security":"eslint ./src --ext ts --no-eslintrc --config ./.eslintrc.security","test:es-check":"npm run test:es-check:es5 && npm run test:es-check:es2015:module","test:integration":"concurrently --raw --kill-others --success first npm:test:integration:server npm:test:integration:tests","print-bundle-size":"node ./scripts/print-bundle-size","test:es-check:es5":"es-check es5 'dist/auth0-spa-js.production.js'","test:integration:tests":"wait-on http://localhost:3000/ && cypress run","test:watch:integration":"concurrently --raw npm:dev 'cypress open'","test:integration:server":"cp static/index.html dist/index.html && serve ./dist/ -p 3000 -n","test:es-check:es2015:module":"es-check es2015 --module 'dist/auth0-spa-js.production.esm.js'"},"_npmUser":{"name":"davewm","email":"dwmartin41@gmail.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"3.5.2","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.10.0","dependencies":{"core-js":"^3.2.1","unfetch":"^4.1.0","es-cookie":"^1.2.0","promise-polyfill":"^8.1.3","browser-tabs-lock":"^1.2.1","fast-text-encoding":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"pem":"^1.14.2","qss":"^2.0.3","jest":"^24.9.0","husky":"^3.0.0","serve":"^11.1.0","eslint":"^6.0.1","rimraf":"^3.0.0","rollup":"^1.17.0","tslint":"^5.18.0","cypress":"^3.4.0","ts-jest":"^24.0.2","typedoc":"^0.15.0","wait-on":"^3.3.0","es-check":"^5.0.0","prettier":"^1.18.2","cli-table":"^0.3.1","gzip-size":"^5.1.1","typescript":"^3.6.4","@types/jest":"^24.0.15","concurrently":"^4.1.1","jsonwebtoken":"^8.5.1","pretty-quick":"^1.11.1","@types/cypress":"^1.1.3","idtoken-verifier":"^1.4.1","rollup-plugin-serve":"^1.0.1","rollup-plugin-terser":"^5.1.1","rollup-plugin-commonjs":"^10.0.1","tslint-config-security":"^1.16.0","rollup-plugin-livereload":"^1.0.1","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-visualizer":"^2.5.0","@typescript-eslint/parser":"^2.0.0","rollup-plugin-typescript2":"^0.23.0","rollup-plugin-node-resolve":"^5.2.0","@auth0/component-cdn-uploader":"github:auth0/component-cdn-uploader#v2.2.2","@typescript-eslint/eslint-plugin-tslint":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.3_1574806620748_0.17802343099117213","host":"s3://npm-registry-packages"}},"1.6.4":{"name":"auth0-spa-js","version":"1.6.4","author":{"name":"Auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.4","maintainers":[{"name":"aaguiarz","email":"andres.aguiar@gmail.com"},{"name":"auth0alec","email":"alec.pesola@auth0.com"},{"name":"auth0brokkr","email":"support@auth0.com"},{"name":"auth0npm","email":"devops+npm@auth0.com"},{"name":"bmaxwella0","email":"brandon.maxwell@auth0.com"},{"name":"cocojoe","email":"martin.walsh@gmail.com"},{"name":"cristiandouce","email":"cristiandouce@gmail.com"},{"name":"damieng","email":"damieng@gmail.com"},{"name":"davewm","email":"dwmartin41@gmail.com"},{"name":"davidmoses","email":"david.moses@auth0.com"},{"name":"donflopez","email":"donflopez@gmail.com"},{"name":"faroceann","email":"maxhammad@gmail.com"},{"name":"fyockm","email":"fyockm@gmail.com"},{"name":"glena","email":"german.lena@gmail.com"},{"name":"heyitsry","email":"ryan.wilke@auth0.com"},{"name":"hzalaz","email":"hernan@auth0.com"},{"name":"iaco","email":"sebastian.iacomuzzi@gmail.com"},{"name":"jfromaniello","email":"jfromaniello@gmail.com"},{"name":"joshcanhelp","email":"josh@joshcanhelp.com"},{"name":"jstrutz","email":"j@jasonstrutz.com"},{"name":"lbalmaceda","email":"balmacedaluciano@gmail.com"},{"name":"luuuis","email":"luis@eml.cc"},{"name":"lzychowski","email":"les.zychowski@auth0.com"},{"name":"machuga","email":"machuga+npm@gmail.com"},{"name":"matchai","email":"hello@matchai.me"},{"name":"mgonto","email":"martin@gonto.com.ar"},{"name":"nw","email":"nw@nwhite.net"},{"name":"rob.coles","email":"rob.coles@auth0.com"},{"name":"rosnovsky","email":"artem@rosnovsky.us"},{"name":"sambego","email":"sambellen@gmail.com"},{"name":"sandrinodimattia","email":"sandrino@dimattia.be"},{"name":"shawnmclean","email":"shawnrmclean@gmail.com"},{"name":"stevehobbsdev","email":"steve.hobbs@auth0.com"},{"name":"yacine-b","email":"yacine.brahimi@auth0.com"},{"name":"ziluvatar","email":"eduardo.diaz@auth0.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"dist":{"shasum":"40f9e88b8195676893753d6cc71f69c2b48baa44","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.4.tgz","fileCount":2,"integrity":"sha512-1qscMxx2kZBOyQRzfmUJHJ33EWtTlRoY08EjB4mmu5lRGIzzK0AHgctmFWgIaKYAWE5vOKZrwd6oOk3Wax3Hqw==","signatures":[{"sig":"MEUCIBM8wlChg08xnGBp2rb41iH+B10s+ZFfx5wHDoTpJcKDAiEA02ts2xelCeeVFpinuHCJL4NkDkMJvP/2D8rdnrK95gA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKvwuCRA9TVsSAnZWagAA4XEP/1fyG/sLQhFRBPa5cl51\nn1R/bMkTrDkinwZ9AWqG26T10E0o7qxzH1geibg0CgmyeRpZylDTBhD0fze2\nRg0ofV5zDVRhJWyTqXBUN11nL/pY7UP6rVmEqpzJ4luYmtMYxS99GSCPvRDC\nLDzjwpLtj5yA+Vt8khIV1SLxzovFGblIeV1LbwHyVPIqGLD6CouiVKqr2CPJ\njsCGcZmnvTiSyvPCXZADZAuT2OscWJyk7hvykPEsiMUvEFtloG0JNlJq46pj\nwKUE5YVJEcdI/PJj1e/Xc5YNuG5+rDasffZ3nhMJPDXs/bWWfhodwZ2n5iaR\nqRITCIbGwJMXU+oeK8Len/pyDtJyXNSftBSfOiK1J06ylEN9I36Twfpg4vBs\n1dZsnvI63y+oq/pF1Ez3Ll/aOw+da1qQwq3+p1RJzixurjr1w/PwW1b+7t38\nHS454q3wH/kCGxgP3MqBj58g6XDngZ/K/nZ0Nq8cRdbq915AG13gKaxme1Kl\nEmufb0oQec6b5f2H+aEQlu5Q/pdpn2EbJm1mDpmFHAj184e74S0LwpaqHF17\nyZFp/ba5Dsh96dfPCA+AkV45bNVHRVTUaGPIOO0PTmTCNaud1jkqaJ2kc0fy\nbnSUzVKmQT4BJwDd4AWABGe2qax9llBAYGSBBJp0R08uEFXUuWKndJNXoLR7\nsyl1\r\n=28ye\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"node_modules/@auth0/auth0-spa-js/dist/typings/index.d.ts","module":"node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.esm.js","browser":"node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.js","gitHead":"d2a2fa9541709b27ab3e0218e8bc4228a70fcd33","_npmUser":{"name":"stevehobbsdev","email":"steve.hobbs@auth0.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.16.0","dependencies":{"@auth0/auth0-spa-js":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.4_1579875373588_0.96267915895795","host":"s3://npm-registry-packages"}},"1.6.5":{"name":"auth0-spa-js","version":"1.6.5","author":{"name":"Auth0"},"license":"MIT","_id":"auth0-spa-js@1.6.5","maintainers":[{"name":"aaguiarz","email":"andres.aguiar@gmail.com"},{"name":"auth0alec","email":"alec.pesola@auth0.com"},{"name":"auth0brokkr","email":"support@auth0.com"},{"name":"auth0npm","email":"devops+npm@auth0.com"},{"name":"bmaxwella0","email":"brandon.maxwell@auth0.com"},{"name":"cocojoe","email":"martin.walsh@gmail.com"},{"name":"cristiandouce","email":"cristiandouce@gmail.com"},{"name":"damieng","email":"damieng@gmail.com"},{"name":"davewm","email":"dwmartin41@gmail.com"},{"name":"davidmoses","email":"david.moses@auth0.com"},{"name":"donflopez","email":"donflopez@gmail.com"},{"name":"faroceann","email":"maxhammad@gmail.com"},{"name":"fyockm","email":"fyockm@gmail.com"},{"name":"glena","email":"german.lena@gmail.com"},{"name":"heyitsry","email":"ryan.wilke@auth0.com"},{"name":"hzalaz","email":"hernan@auth0.com"},{"name":"iaco","email":"sebastian.iacomuzzi@gmail.com"},{"name":"jfromaniello","email":"jfromaniello@gmail.com"},{"name":"joshcanhelp","email":"josh@joshcanhelp.com"},{"name":"jstrutz","email":"j@jasonstrutz.com"},{"name":"lbalmaceda","email":"balmacedaluciano@gmail.com"},{"name":"luuuis","email":"luis@eml.cc"},{"name":"lzychowski","email":"les.zychowski@auth0.com"},{"name":"machuga","email":"machuga+npm@gmail.com"},{"name":"matchai","email":"hello@matchai.me"},{"name":"mgonto","email":"martin@gonto.com.ar"},{"name":"nw","email":"nw@nwhite.net"},{"name":"rob.coles","email":"rob.coles@auth0.com"},{"name":"rosnovsky","email":"artem@rosnovsky.us"},{"name":"sambego","email":"sambellen@gmail.com"},{"name":"sandrinodimattia","email":"sandrino@dimattia.be"},{"name":"shawnmclean","email":"shawnrmclean@gmail.com"},{"name":"stevehobbsdev","email":"steve.hobbs@auth0.com"},{"name":"yacine-b","email":"yacine.brahimi@auth0.com"},{"name":"ziluvatar","email":"eduardo.diaz@auth0.com"}],"homepage":"https://github.com/auth0/auth0-spa-js#readme","bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"dist":{"shasum":"4e65e8398498275dfce5f58f6478448f60495782","tarball":"https://registry.npmjs.org/auth0-spa-js/-/auth0-spa-js-1.6.5.tgz","fileCount":3,"integrity":"sha512-qY2a7ovEcYxNJfyYMTUPnAcR6uqgo+mxhUFe2kwmkTwswkvy50TjbS9Xnj1Xi5AXgl23iLMcBos3qVWNci4ZYQ==","signatures":[{"sig":"MEUCIHLPShki3zyGFI4pSLZ61mG+/G2Eqn0UBv/Ya8sl/errAiEAqzIbiOKy7Lj2fdBhnX/powiO46d8ZuvjvVhz87JjTa4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2kA+CRA9TVsSAnZWagAAW00QAIc8LYEQTQtLQdjD5rwi\nPz1pvtsQXRlkf3DCNHbxREvtYg4SWBJbbj6bbp9VggKr5BK9fjsvHadARBPE\nAMg0cfynfN5hjEJBWJ6mXTkhvIZ6+MBNApz7sNgvi58WeKEiTE8n4jwMGCh/\nQcupRSz1EdEx57RrtuHgXmE2cyXYIAneqCi0p6FjmaVM3ApsFNDEsSM03H0P\nIgyiXJZBNUsMsPkcQ+7ctclEKWxncRppbafj4/SPHt54Wk3Nv6TmtYpcvMKZ\n3zDXbxxK/V9sYa4dzv270Dn9gfyb6J3yLpmJ9oRbOuwK2r570hGDvSBccrun\nXi8n0NxW6B6zm614IAkA4Dk0gxiG3o15mIra8HEOxm6Sx3/U8KSK+R6Sbp1M\nIjafpLTJpMMsZVhOwPN75P/TOQ6rx50ISJZoV++43fis9Ic8FN6e7gRNdngY\njzlrsKNmWe2UkjaIpPqWxj10Q55uE+8yEV8ONXrOfcd3pWufQdAo2gOb5fyS\naPoSvlKWcN7qUB1W75lzp5OdAinDYYvA8MIg+YVt7ACjdQgcq+kqaG4KISo7\nMSWXCAKq7lf8mBYagVjZqX7L9WmOZTNunSedE5UovmFIsO/btpOnrMmG8spY\nyKdOQjIUSglVd7LB2KiEDyRZxeo5epdWEDCjwEfm+WJhSME0DatctmdDkOax\nlAAu\r\n=gfV2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"node_modules/@auth0/auth0-spa-js/dist/typings/index.d.ts","module":"node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.esm.js","browser":"node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.js","gitHead":"b1a58606018428a858cbc64bc3bdea54dfbe759c","_npmUser":{"name":"stevehobbsdev","email":"steve.hobbs@auth0.com"},"deprecated":"Please use @auth0/auth0-spa-js instead.","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","directories":{},"_nodeVersion":"8.16.0","dependencies":{"@auth0/auth0-spa-js":"^1.6.2"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/auth0-spa-js_1.6.5_1579875558238_0.0615609427643522","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-11-26T21:36:21.427Z","modified":"2026-07-14T10:26:30.899Z","1.6.0":"2019-11-26T21:36:21.544Z","1.6.1":"2019-11-26T21:56:14.057Z","1.6.2":"2019-11-26T22:12:13.394Z","1.6.3":"2019-11-26T22:17:01.014Z","1.6.4":"2020-01-24T14:16:13.699Z","1.6.5":"2020-01-24T14:19:18.351Z"},"bugs":{"url":"https://github.com/auth0/auth0-spa-js/issues"},"author":{"name":"Auth0"},"license":"MIT","homepage":"https://github.com/auth0/auth0-spa-js#readme","repository":{"url":"git://github.com/auth0/auth0-spa-js.git","type":"git"},"description":"Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE","maintainers":[{"email":"oss.sdks@auth0.com","name":"auth0-oss"},{"email":"devops+npm@auth0.com","name":"auth0npm"},{"email":"support@auth0.com","name":"auth0brokkr"},{"email":"jesse.le@auth0.com","name":"jessele"},{"email":"jeff.shuman@okta.com","name":"oktajeffoktajeff"},{"email":"brian.s.smith@okta.com","name":"bsmith-auth0"},{"email":"sanjay.manikandhan@okta.com","name":"sanjay.manikandhan"},{"email":"nirmal.joishi@okta.com","name":"nirjo"},{"email":"nil.torres@okta.com","name":"niltorresatko"},{"email":"jaskirat.singh@okta.com","name":"jaskirat_atko"},{"email":"henry.mcardle@okta.com","name":"henry.mcardle"},{"email":"nicolas.villalobos@okta.com","name":"nicolas.villalobos"},{"email":"choah.jung@auth0.com","name":"choah"},{"email":"josecarlos.chavez@okta.com","name":"josecarlos-chavez_atko"},{"email":"saurabh.kumar@okta.com","name":"skatko"},{"email":"tirone.pama@auth0.com","name":"tj.okta"},{"email":"sergio.garciaramos@okta.com","name":"sgarcia-atko"},{"email":"roger.chan@auth0.com","name":"roger.chan"},{"email":"michael.antone@auth0.com","name":"maaantone"},{"email":"lewis.byrne@okta.com","name":"lewisbyrne-okta"},{"email":"tarunpreet.kaur@okta.com","name":"tarunpreet.kaur"}],"readme":"# @auth0/auth0-spa-js\n\nAuth0 SDK for Single Page Applications using [Authorization Code Grant Flow with PKCE](https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce).\n\n[![CircleCI](https://circleci.com/gh/auth0/auth0-spa-js.svg?style=svg)](https://circleci.com/gh/auth0/auth0-spa-js)\n[![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://opensource.org/licenses/MIT)\n\n## Table of Contents\n\n- [Documentation](#documentation)\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Contributing](#contributing)\n- [Support + Feedback](#support--feedback)\n- [Frequently Asked Questions](#frequently-asked-questions)\n- [Vulnerability Reporting](#vulnerability-reporting)\n- [What is Auth0](#what-is-auth0)\n- [License](#license)\n\n## Documentation\n\n- [Documentation](https://auth0.com/docs/libraries/auth0-spa-js)\n- [API reference](https://auth0.github.io/auth0-spa-js/)\n- [Migrate from Auth0.js to the Auth0 Single Page App SDK](https://auth0.com/docs/libraries/auth0-spa-js/migrate-from-auth0js)\n\n## Installation\n\nFrom the CDN:\n\n```html\n<script src=\"https://cdn.auth0.com/js/auth0-spa-js/1.2/auth0-spa-js.production.js\"></script>\n```\n\nUsing [npm](https://npmjs.org):\n\n```sh\nnpm install @auth0/auth0-spa-js\n```\n\nUsing [yarn](https://yarnpkg.com):\n\n```sh\nyarn add @auth0/auth0-spa-js\n```\n\n## Getting Started\n\n### Creating the client\n\nCreate an `Auth0Client` instance before rendering or initializing your application. You should only have one instance of the client.\n\n```js\nimport createAuth0Client from '@auth0/auth0-spa-js';\n\n//with async/await\nconst auth0 = await createAuth0Client({\n  domain: '<AUTH0_DOMAIN>',\n  client_id: '<AUTH0_CLIENT_ID>',\n  redirect_uri: '<MY_CALLBACK_URL>'\n});\n\n//with promises\ncreateAuth0Client({\n  domain: '<AUTH0_DOMAIN>',\n  client_id: '<AUTH0_CLIENT_ID>',\n  redirect_uri: '<MY_CALLBACK_URL>'\n}).then(auth0 => {\n  //...\n});\n```\n\n### 1 - Login\n\n```html\n<button id=\"login\">Click to Login</button>\n```\n\n```js\n//with async/await\n\n//redirect to the Universal Login Page\ndocument.getElementById('login').addEventListener('click', async () => {\n  await auth0.loginWithRedirect();\n});\n\n//in your callback route (<MY_CALLBACK_URL>)\nwindow.addEventListener('load', async () => {\n  const redirectResult = await auth0.handleRedirectCallback();\n  //logged in. you can get the user profile like this:\n  const user = await auth0.getUser();\n  console.log(user);\n});\n\n//with promises\n\n//redirect to the Universal Login Page\ndocument.getElementById('login').addEventListener('click', () => {\n  auth0.loginWithRedirect().catch(() => {\n    //error while redirecting the user\n  });\n});\n\n//in your callback route (<MY_CALLBACK_URL>)\nwindow.addEventListener('load', () => {\n  auth0.handleRedirectCallback().then(redirectResult => {\n    //logged in. you can get the user profile like this:\n    auth0.getUser().then(user => {\n      console.log(user);\n    });\n  });\n});\n```\n\n### 2 - Calling an API\n\n```html\n<button id=\"call-api\">Call an API</button>\n```\n\n```js\n//with async/await\ndocument.getElementById('call-api').addEventListener('click', async () => {\n  const accessToken = await auth0.getTokenSilently();\n  const result = await fetch('https://myapi.com', {\n    method: 'GET',\n    headers: {\n      Authorization: `Bearer ${accessToken}`\n    }\n  });\n  const data = await result.json();\n  console.log(data);\n});\n\n//with promises\ndocument.getElementById('call-api').addEventListener('click', () => {\n  auth0\n    .getTokenSilently()\n    .then(accessToken =>\n      fetch('https://myapi.com', {\n        method: 'GET',\n        headers: {\n          Authorization: `Bearer ${accessToken}`\n        }\n      })\n    )\n    .then(result => result.json())\n    .then(data => {\n      console.log(data);\n    });\n});\n```\n\n### 3 - Logout\n\n```html\n<button id=\"logout\">Logout</button>\n```\n\n```js\nimport createAuth0Client from '@auth0/auth0-spa-js';\n\ndocument.getElementById('logout').addEventListener('click', () => {\n  auth0.logout();\n});\n```\n\n## Contributing\n\nWe appreciate feedback and contribution to this repo! Before you get started, please see the following:\n\n- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)\n- [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)\n- [This repo's contribution guide](https://github.com/auth0/auth0-spa-js/blob/master/CONTRIBUTING.md)\n\n## Support + Feedback\n\nThis SDK is in Early Access with selected stakeholders.\n\nWe process feedback and provide support via private channels.\n\n## Frequently Asked Questions\n\nFor a rundown of common issues you might encounter when using the SDK, please check out [the FAQ](https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md).\n\n## Vulnerability Reporting\n\nPlease do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.\n\n## What is Auth0?\n\nAuth0 helps you to easily:\n\n- implement authentication with multiple identity providers, including social (e.g., Google, Facebook, Microsoft, LinkedIn, GitHub, Twitter, etc), or enterprise (e.g., Windows Azure AD, Google Apps, Active Directory, ADFS, SAML, etc.)\n- log in users with username/password databases, passwordless, or multi-factor authentication\n- link multiple user accounts together\n- generate signed JSON Web Tokens to authorize your API calls and flow the user identity securely\n- access demographics and analytics detailing how, when, and where users are logging in\n- enrich user profiles from other data sources using customizable JavaScript rules\n\n[Why Auth0?](https://auth0.com/why-auth0)\n\n## License\n\nThis project is licensed under the MIT license. See the [LICENSE](https://github.com/auth0/auth0-spa-js/blob/master/LICENSE) file for more info.\n","readmeFilename":"README.md"}