{"_id":"amazon-cognito-auth-js","_rev":"60-21dc1590e053700ec01db36cc04fca26","name":"amazon-cognito-auth-js","dist-tags":{"latest":"1.3.3"},"versions":{"1.0.0":{"name":"amazon-cognito-auth-js","version":"1.0.0","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"SEE LICENSE IN LICENSE.txt","_id":"amazon-cognito-auth-js@1.0.0","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"dd3c625586c1eb6e0b79f1f65e8a4bdf5eea720e","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.0.0.tgz","integrity":"sha512-ZosgchYCrOLdu2pyUJOmQ30vAMPMZt8COGukm17clSni4GMSmVEqss5ejYrgqCsYNexh+6xhWmIzRqBtjXWUfA==","signatures":[{"sig":"MEUCIGFJZl7l5R8ReN8iPBsYk9jmJq9xZqfq1gGFxKcbPtDZAiEAgraTMv2bF0OZ7Ng7vhPKsHjoYNu/0nrPPCuZG5nFdJs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","module":"es/index.js","_shasum":"dd3c625586c1eb6e0b79f1f65e8a4bdf5eea720e","gitHead":"5b365426b2eef2ef27914f7a275e72dea5e302cb","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"3.10.10","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.5.4","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.1.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js-1.0.0.tgz_1502738373358_0.4871978440787643","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"amazon-cognito-auth-js","version":"1.0.1","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"SEE LICENSE IN LICENSE.txt","_id":"amazon-cognito-auth-js@1.0.1","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"ccf890b769c6b2b0c5d3aadfdbe27aee5757d5a3","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.0.1.tgz","integrity":"sha512-sX/rh32sPq06qhBjSl1doYiSUZTzO51ClWES/tandwM51jZVmJUIMpUFRelmlXHRlQztukFJOpIbe2tOxjfmMw==","signatures":[{"sig":"MEQCIECYf5R4gNgOvdMGZR5QC1ccoCEJXOqlCF/y7ip5ib2FAiA+H4aRvCHk2eQQSiG5b+BUgasm3f1LisbKYFIwfHtZ5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","module":"es/index.js","_shasum":"ccf890b769c6b2b0c5d3aadfdbe27aee5757d5a3","gitHead":"a6a6d845f3988e350059a827fcc8c4251a0ecd12","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"3.10.10","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.5.4","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.1.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js-1.0.1.tgz_1512073414953_0.5660039456561208","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"amazon-cognito-auth-js","version":"1.1.0","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"SEE LICENSE IN LICENSE.txt","_id":"amazon-cognito-auth-js@1.1.0","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"1400ccbf1368bc4e40b08743355eecaed62de00b","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.0.tgz","integrity":"sha512-Z4Hx3VUG8b9pfgKJZS17tVPgYxqNvpFRyHZ0uTcILHpOl+3oMQCQtwZlRZ+o3jzf4+PcdNLj2nrvRpbwbNZGkQ==","signatures":[{"sig":"MEUCIHBEe7fo97nB3ruX2GhcM6aV7hgZ767uaf0URzv9iCY1AiEAx+gvp1nvE7cF3g+wZ24L3OErMdeRDqkx81WlG3FjpWg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","_from":".","module":"es/index.js","_shasum":"1400ccbf1368bc4e40b08743355eecaed62de00b","gitHead":"bf9527fa198d51d9091bb74bf3926f3070d68e5b","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"3.10.10","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.5.4","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.1.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js-1.1.0.tgz_1512084744387_0.6042092582210898","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"amazon-cognito-auth-js","version":"1.1.1","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"SEE LICENSE IN LICENSE.txt","_id":"amazon-cognito-auth-js@1.1.1","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"e90452facf77cdd1d63ea7b39a62df8a53852e1c","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.1.tgz","integrity":"sha512-1qQ8gs4roETd3SJFwIAY69POiRO7uel+r4gx8SwKoOmiCrTlepUFTIRiosJXoeMM1hkeXwyNeYy99xUdJ6q+Gw==","signatures":[{"sig":"MEUCIQDMXUYjclnnZ+H/aJKhE9KHQmTsYgyz1wMH3WHeZ+iuJAIgPi6i2VE7ofPxlNpJ17+LR1PXLnrMPSt+dOblhAy6AIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/index.js","module":"es/index.js","gitHead":"8ae3d240aa1fc878382f03df9f6652573c6bb7c8","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js-1.1.1.tgz_1515005264922_0.44091269141063094","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"amazon-cognito-auth-js","version":"1.1.2","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"SEE LICENSE IN LICENSE.txt","_id":"amazon-cognito-auth-js@1.1.2","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"e5814f852640c12483950bb124203619b4f2bae4","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.2.tgz","fileCount":33,"integrity":"sha512-+jEY6rFIi1Kxch+yoEzjeB/asJJtyqfLwQKe8O+/4PaEKLOuaEjlh/Uhlg56nz5KjtoxpFrEgyLSXju/kJ6FCg==","signatures":[{"sig":"MEYCIQDTOZqXfldVEOSSZVlriY1E2CMKnH2zInDk0FGUjOTN1wIhAILBZV4ck8F+ucZ75b8cP8hNRNybpZtmemi3GX7ds0n2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1229663},"main":"lib/index.js","module":"es/index.js","gitHead":"ffcf4785e34b0b000db1599f027fd489a0f7aaaf","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.2_1519687681069_0.7393884061293692","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"amazon-cognito-auth-js","version":"1.1.3","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.3","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"4a44170ac29283c4c9fb52d994bb186ac27f314a","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.3.tgz","fileCount":42,"integrity":"sha512-yYzcxF0dG/G/Al//+VW914iQENjjSXUcp/zhkw4fKAbyXSsxtDGonRCjkF5sY6eTJ2y03vJWeLSfXsT7OAPtUA==","signatures":[{"sig":"MEQCIDakM3L6jn8aZtSsmorLrq9DLHXrAYgbD3Ku6NxDp5W5AiBCK94kug18N7UbqeqF4Pi8Ar3sR1QoUIO7TzQS79HLcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1279039},"main":"lib/index.js","module":"es/index.js","gitHead":"90a4b1e93bad6decb257881e661076629a3457ed","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"aws-sdk":"^2.6.0"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.3_1519842374721_0.12469329999402645","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"amazon-cognito-auth-js","version":"1.1.4","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.4","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"8861694754563da2f9991ced8615de6ba3fcd615","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.4.tgz","fileCount":42,"integrity":"sha512-7JdmBvboX67ZBS/WtqjItc8Rtk27DaFDwzmQuswF4iW/kBKvgXQNFaFDVEYr9jwzqSlg1zESDQM7jVfzqh+VGQ==","signatures":[{"sig":"MEUCIDlWfWGtnhu01dOIIRb7ZzcxmY59JIe9bslURmbZGvV0AiEAjbZTiUGbvpxxKSlyRqe/76RlzA4F7AfUAEoYX0ADoZ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1503462},"main":"lib/index.js","module":"es/index.js","gitHead":"b6b5e8d94dfff6b820682f7052076dabd8043d8e","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.7.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","dependencies":{"buffer":"4.9.1"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.4_1521235899103_0.7497140480108588","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"amazon-cognito-auth-js","version":"1.1.5","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.5","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"d7f7b296e2f8e6c6a163d29faa49c974d7b227bf","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.5.tgz","fileCount":42,"integrity":"sha512-m33z0hAYFhN4mOWaA649+AtZoJeRN/1cTtBAdUGGW7SH5t2cEz8LsjYnnMnNCK5wtZ8/x2U1wXyp8SS80Lob5w==","signatures":[{"sig":"MEUCIQDt78n9512mVTXYKcqJvScP1w2m544fxajURe07+k8voQIgC0z+gYwn1np3MMUXTaCNLW0EP48VsmcFe5QxcnbhWSw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1237163},"main":"lib/index.js","module":"es/index.js","gitHead":"38cf6239d3c379ed3a4bcfa300b6c2f261e64e2b","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.7.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.5_1522185321546_0.49162089133164355","host":"s3://npm-registry-packages"}},"1.1.6":{"name":"amazon-cognito-auth-js","version":"1.1.6","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.6","maintainers":[{"name":"mreddy","email":"gmreddy@amazon.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"8fbdeea5c713d59f432d72e9ae45f069464b2cad","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.6.tgz","fileCount":45,"integrity":"sha512-uieMYkI2y0FUk64SFGf3qKbBonkvIa+YzfsAqtMWOTll05qg3PjE17ECmQlnF070KwtrO/uz27Y1hNdqmEfvyQ==","signatures":[{"sig":"MEUCIQDw1sBGBPavh1saZUi3cMuJ/0BQ5xihkfkgFnjc0ZEpRgIgJUJbJMv3tir2To/AXSsdVVXH/RwaPID4w7pDL4714CE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1241727},"main":"lib/index.js","module":"es/index.js","gitHead":"497ec42e8a61e4c2cf9527c2409dbe12ea0712e4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.8.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.6_1522701417509_0.8999505920045443","host":"s3://npm-registry-packages"}},"1.1.7":{"name":"amazon-cognito-auth-js","version":"1.1.7","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.7","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"729eaab23c6cdbe8ba6019d246c701ad34c0a5e2","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.7.tgz","fileCount":46,"integrity":"sha512-AdKasBYd7bCZ2bt/ahLy+MP8HTHuzU0U7xNH29qexAIgpIHdb6H1PWOyINnrb6/ecAUiOk6/aifur49JBOIt0A==","signatures":[{"sig":"MEYCIQCYJHUEjGhz9EwkFm1v7hbtc6y/9dhi9WoXjS2Is33JPwIhAMtStO4fM6lFfE0VCVhkRqNRVBLin8CRIDh/YeQcctM+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1332500},"main":"lib/index.js","module":"es/index.js","gitHead":"b7f387e3566fc6667bdf520b2c9894c7a380cde5","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"powerful23","email":"wenzhuo235@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"9.4.0","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.7_1522956448845_0.6091170515597573","host":"s3://npm-registry-packages"}},"1.1.8":{"name":"amazon-cognito-auth-js","version":"1.1.8","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.8","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"3b2eebaae557abbcbde7ef44fd869ee76b7d099a","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.8.tgz","fileCount":45,"integrity":"sha512-OyS6wgpoS9ShUbRAlNwDfg8Ycm+Fp3i7jJCjo3kM6DFBZO0ssEAMciAtskQp45B7mx4LkkTn1zqaRwXXOefdjA==","signatures":[{"sig":"MEQCIG5c3EXYLylppP0u+p+2biz56NGzlvUT17lmLdQeCw0MAiBD0TGgcxfG5ZKLwZRdA492lFH6fkP1FFMQWS4ZK97m4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1243439},"main":"lib/index.js","module":"es/index.js","gitHead":"9c5f03fa0a68be739f0f7fbdd5683214267cedee","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"powerful23","email":"wenzhuo235@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"9.4.0","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.8_1522967416764_0.6039730910842451","host":"s3://npm-registry-packages"}},"1.1.9":{"name":"amazon-cognito-auth-js","version":"1.1.9","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.1.9","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"f230508aac15bf06da152a39fc426d063a72cfa6","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.1.9.tgz","fileCount":45,"integrity":"sha512-uEK0uJyQUdAPzN4hifE48vKox1RbloH47gsaBntGLZ3QBlrOwYwmZoH9mRpOX01Z+OahGOCwkgy45ebDA4LooA==","signatures":[{"sig":"MEUCIGHlnU1tERU8yJiXNkGvkLciNC4M8UKWRJWvWc6a4RrvAiEAzaW5ic/i47Bex5E86RQZbd5eu9ePLixua6eW6iKBUtw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1242854},"main":"lib/index.js","module":"es/index.js","gitHead":"d3a220fc6a7456ccde2ddc873fd3a418fae739a3","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mreddy","email":"gmreddy@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.8.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.11.2","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.1.9_1523401379109_0.3094581167124504","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"amazon-cognito-auth-js","version":"1.2.0","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.0","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"637f044a3a6114d6d0a87b415157ea36f32431e8","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.0.tgz","fileCount":45,"integrity":"sha512-tMvwIH01EJRbjK0YN95+dAdHHK9JJlx6xXlnhN09vmNB1iopUZ6rWMS9hptEzA1BQOZ0SbmJ9Z5pJFwpiqaSQg==","signatures":[{"sig":"MEQCIDG77sRTGBOPCDpebSCP5eM+NRIVouPWHpz/w0/xM+wbAiAqznYjOokgG8fgKkVvEP40Cgsq3Su4mc8b/06JlMLOcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1242877,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa35E5CRA9TVsSAnZWagAA4RAP/2icx1mmJ0E0HAGQQqps\nahBggcIOOxua6c6/L6upFOO+FqaIJcM5QOzV1Z7FnKfo2mgpANOBPemZSw2b\nbWdZiWJ0n1r/cLV+wqqH+m4tupazSizTnHX3L6C05fjM8OUKJ48XNczVkspb\niVrwbwQQDlLwegSmJd10OO+ws4HLMrMK6O8Ry7ljXxUrWVYC8d9xCpZZEvvX\n8iHi5odLgIY7BMsg8FQySaKohda2vJFnAI791eezrLWCZvU2I/bXrP1UnSQ7\nBpRXMG7aOLgFWCfdlBTZcWetrPlxWKrw7cjKa10tbC8Ah/uysp+1BIaRoarX\nTKtt3jGOvjrVBgP0MyplXU8XYfcGmCxyJnXez66byDuNpyYFIO//MQh6knGU\n8DDjWbyeviod6IKppeolBUlmwUHVPGxF6mKgRNRK3wa26c+lr7FnlYx0s7nE\nieV+EY4WLoeghhDAhxCx8D3tQpXEfm3vm70wPd4qoVwlkL4llzznv/0GThiy\n/N+NKu1wMebCiHAjIXTlvYJnmNAUmO7kO+N5uoLLgHlBsLSKUCi0dy7FRSeO\nXiNZCycizMXs4o8HPe2nf7vkqE7G7AHw0gmrPdkitVbDnPExArH0JbRsSB+i\n+9DC43riVX+MVSvgxrku0Kx+asKdtj+dWWzKXe/z9NvfOjLC1VjrnFbcFL3u\nQBov\r\n=n48l\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"0b96e2b0647660cea17059758d0f1e1f7b3647e2","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"powerful23","email":"wenzhuo235@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"5.6.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"9.4.0","_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.0_1524601144298_0.7654250675658649","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"amazon-cognito-auth-js","version":"1.2.1","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.1","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"yuntuowang","email":"yuntuo.w@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"12e89b6e6e2eb6626bd538abf419b8df3d584c15","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.1.tgz","fileCount":46,"integrity":"sha512-XZIm2vMFP4A452Tx6xasi04ClUTDNNKwWNd8E9Ojw0HQqS2bNqBk4InXRbu0IusS5hXFdm7u4JkMhIUNZ7nufg==","signatures":[{"sig":"MEUCIAjJjqracs1/J/Cw20TQtB8Ar9uiAVyDmTx6SAmAK1gEAiEA9F8MngU40Sl0ABCBLoOdmUHNeZicJCtjthYdlQvluR8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1245242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEICPCRA9TVsSAnZWagAAUp8P/2ggrsZ2aOIUSE4hz8DQ\nVzFSkTc6lTDokv99uc4CzQ7coVIkZqSUxieRfHvxzXetjIb+Vvo2JQykxckv\nk6PvvQ0pg5OswNSMA+eZE1L784/lhmfF2iEE3ZGZNAsK94lu+qjeGuUvqrb/\neop5Ivjc8wSQG5JZOAEIJzbN2KWh3JRwJ5QDhgYG1xMI6roitWhL7Cg1cSbP\nRnZUxX1S1UP7YNcpZ/gzkwlaRfCgSlTdYLWTi+OtzzM/gmioS3ROtk2KXHx/\nn0L7+yF3Arurbvvef76qR+eedqu3Jxa34Oj0Iyu3hBC2wHQL1GzXcNtjDR9J\nMmCIk0NjYjUYF9r92feDe2fbiqde5FXqRe4Z8uBc1RKm/IfsOjF5Ky2TQpTY\nNFFvBwUUkktuNWZEY/qA688R+1VnCAuyhpVf2DUm3fB+cXJrGbhYNwi663CK\nrxSuAr2bo7eMWtzycUwAS0M+FUAFQ+Sg/HH7QaHPyaszfdYs1sXj8HUKZx0e\nAKnTSrcruGQcQy8GsSmddfjBqrqQkydxLr0mQ8abLvGNsrdc5xTeEkryM3In\nTSG1aq0RjXz7ujOeq7rNwi5qVVCwCX388/zrPvXpnKZhbUok9fmnG7w0eMYo\ns7DJsaEmbtSMaMsNiClr3xkIfT2B+9yhGgwoIM7PeZ0Vv9tbcLwKs7RtaV7c\na+cP\r\n=zVeu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"16878687a2a7db55ce48a26c626eefbf36e16675","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"yuntuowang","email":"yuntuo.w@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.1.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.10.3","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.1_1527808142253_0.6821076714912497","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"amazon-cognito-auth-js","version":"1.2.2","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.2","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"yuntuowang","email":"yuntuo.w@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"fe511a20ac080dee41554468451cfeed95e251fb","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.2.tgz","fileCount":46,"integrity":"sha512-6/VytY/n0NAmsQgTr5Q+slE9PqKoJ4FONTSWd5d6ygqKNXuXFmGFg3809qSvnvPyiJjonUxqtw2Tui4r3584RA==","signatures":[{"sig":"MEYCIQD8oPbKZssxfduI4l/n1EuAbh5BZNqTSsC9fmcAfgskVAIhAN6rF+cm1GyPrg8/JNNPaMMo7gSYdHCt36Uq1W6+fBkR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1245485,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEJ2zCRA9TVsSAnZWagAAAekQAJIH1ZboHIODX7tG3Wh3\nou/LWnA0msg3zztL2e46ptehOZCCW9nhgFuqv10W53PPGX9fuMPmv36DqWP/\nt5J4mLw6DNFnFPUjYtmWC7frjhuzpbTAUee0cFjA9xhvXf97rQnKoZIXDRYR\n/ZTfziwHvKHDATEU1c8MJHaTzfirjGDZmE4CKHUtwMxkbb4jn2UwC0SnXQPj\n0TBQ/pAdZ0f2c9IGGJ9/FmdKFPD1JRBvjzHcITQGLo0at8DMAiZn9WXjIiaH\n7eYGL1AOQloUxo9Na2X6OtwLfhHPa+CZorsIAwxbCp7KQLBc1+l/tEaEMqM9\ngQ0Qm9MHNqugZtl5O/ZlS0dmPot1+WLjz64UqSsEj9SPuqtl34Dz2Hg5b0jC\n2RDq2je2gFfWvpayu2jlYsZ3pNAxuXHuzSxs4q6i2upgNPQA2pDU0a6YZIzy\nCJWcm+PqrM0CSMhMqEuQzuC5bUn6fK16hN0rOOcuY7hm1VHlwPTruDWwLKFu\nStCTN8o5BTtVxVzzRLaTd66/DgG2r92X3kDQTUmihk/0++fR9VQC0s3/DQRJ\n22NZzKpcWgpDK6m2D9CA3yN6wGVVG02THCE9gYNM6UPLVFpvnpVpQBOpSaMS\nCl21QyyOIqg1KY93egS3yA9o93ONhF1uS0CJlTRSqEgXPpD8qdt9kC4xwZK0\ni32s\r\n=LDVF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"d3fcbbacaf4f7250024cc95f55d430ca063b486b","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"yuntuowang","email":"yuntuo.w@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.1.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.10.3","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.2_1527815601827_0.04896235332364274","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"amazon-cognito-auth-js","version":"1.2.3","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.3","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"yuntuowang","email":"yuntuo.w@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"98f72b02f45357ef718e329c764c2fba4a2f1206","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.3.tgz","fileCount":46,"integrity":"sha512-bFWnDcjSFIc7xPtCupvWjrvKTiBcBYXvDd4TJnxZ++ba+nxkDhHMfMZa1pIRXMtku1m1XjeRVS7ZaMS9axoYFw==","signatures":[{"sig":"MEUCIHxjAnKHQ7gUWRtJ7TqJqikxnBtVgETRJm7t6XJ15qz9AiEAsSo5Vx4hXUGuOI9nHbBbfOOg/IG1RrgA4Tb6RPnwGqI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1277872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbGr7jCRA9TVsSAnZWagAAskkP/0JS4yV6fOs4XmUgv9z+\n/djXnwB8B3ze18kzSAxWa9l72YwWdo3qdOrwG31ri+wapjlHX7U7oVzK7day\na+nbOhvnjrbaGIob0pbCFtpQVAw92xuxp9yb+w2+kKBmIpzsj8obKODl/g6h\nrIlHaA4Zf0g5TbcEFENFzVRlPGxZpR4plCOCeRpsjhQLq7JNl7HY/SkOZSrs\nFwJBqLcDFrlNosMrWuDLCyYF50fHMhPtrg2GTRp8w96xHb/Hr8rJ7SssdT7A\nzQ6qa1+Zusza8GjlALosgEmdvSNTpTcRe+Tfc7unU7nveE3bGEYZAr5rLMec\nRWdixdEIjHB3lcySSCgHYwy06ZAtgdPoa6ukB7f5C1oCZqKKG7Sjf9neY+K1\nr76yefoShh7KhJ0GBEpmko+7UrEwncF2doHmcMOvHWANspIVYncda2FRIY+n\nRKzaK8P0rV2+F8L9yANZlViw1a3jcL6jxDzwwjgPTyE1P0BkZlght0Eij3I7\nuKbNDkIEdD8dkdfRXXvP4ZpdHeCgOe0UvDQl4JjXw+5xsAfcpdaMbMvTPNfA\nYS6XdZ/XEQVGpcueqNp/FouLvsFOT40PSwL7OdoCFj6nb9Heox4eIYELHRNy\n1Izg8kkMBd5RCTYxiy+eo5SUpEPPd79HD3PcXIBiyUm5d4APn8tx4UmbHwuo\nmoCX\r\n=8g3V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"354ef67c0ff9011c5cd706ff68e97a2f55b6228c","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"yuntuowang","email":"yuntuo.w@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.1.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.10.3","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.3_1528479458491_0.7328040145761403","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"amazon-cognito-auth-js","version":"1.2.4","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.4","maintainers":[{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"yuntuowang","email":"yuntuo.w@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"40d82f0ed389905fd0751693ba46a5386ac6864a","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.4.tgz","fileCount":48,"integrity":"sha512-Walq6lIHB+MBOEfg0RBezURTDBKvUO4H9xpW2DBLZT3aDTF+p8awKHe2AujdHYItkefOhdjwu4GqjFgo4RkG+A==","signatures":[{"sig":"MEUCIQDFzN5/zqpUPJYx/bXTHVeLWRBzbQW8KhxZFxx8TSosQgIgTLgGmw2Mn8izzstcdTwEIIfjh9MNJVyplDXF3PApOlQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1251213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbRkc4CRA9TVsSAnZWagAAIDUQAI+5d/JqRNqRzqyfdIHf\nNb0+ycXSH+BNyCLNRF+JRZ1Fwa1UINMvgQWEVz7Z9jvZSGoF0ioF157jqEWM\naQg0FjXc7K2gG8U5o77MIgN9JG3VPbISkktEcP1Ihh35azY+KjoyZyGcklcC\ndDA6HjqBsjLJk96bNUGMnxgTZ/URtB6EtLboPQ5vkmVYKAhc8brCgLuze5Q2\nM7mC0FipOO89erkdyQFnFcsu3dSQyfpSpcs3ALnK51Xv3p7x4CUuI9SHrI+9\nhn6Y8TOTiavMcHt6pqRS8wsnlbMspnSavO23Lsyhah811+vDGI/OTWqRxfsB\nChvjqe3+WTVzBAaH6ty1we1t+fgERO1rpx+fCfqvrRdmZLfDYixMmfRrlxwF\nVDojbqgUJej6eTWnDjK26mtXIOYo0GY0Wh1VBxJ8PJeXk1bkAp7n5dEcF6UX\nT+h0ywL2abwpM3dyObrjBfYOhiZzjO+btavCSpj/xiK/WIoaeVZ5WIMlWQzk\nFX8Lep1sJTT3+cUm3VGr0Rr6Bjev6Te8txlU/WtTmDHo9EdJlRKnvDUyFZid\ntGS6TiYRKGrC/4ZtRE1ZornstNSifBnOCLtpr/erDqE/ILFs5+j1LGDmKI62\nl/0yO0Oce0CAAN7YfP/flUoqcxFeg8CEMtUFMA8oiZkHo9rDXj1RAiT/hgnT\nhNYs\r\n=EsLz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"1ea0f1d9282201f31411ac87b8a96a244793c1f4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"yuntuowang","email":"yuntuo.w@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.1.0","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"6.10.3","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.4_1531332408593_0.8265817037106553","host":"s3://npm-registry-packages"}},"1.2.5-atob-react-native":{"name":"amazon-cognito-auth-js","version":"1.2.5-atob-react-native","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.5-atob-react-native","maintainers":[{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"32c47adec2796ae04fff2f7bf0b57166131543c2","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.5-atob-react-native.tgz","fileCount":54,"integrity":"sha512-EcKym+JULW7EyAlwLY+759LDeshwp+CnJ88eOYrZKHFr6APBaVxMbUtajkD1EPj4QzolULGah1tkwPUtx3OKQA==","signatures":[{"sig":"MEUCIQClWelrlsb6gOFFe+tKs8CtzO/1lzASU+rRTaQjs6cJxQIgXOgpXimHF0GCNXQxKOlC4jktaVtRA6T4CdhTMHbigbw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1297136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbgcECRA9TVsSAnZWagAA4QgP/1ksO2xgT3B5vKjU2Oa4\npIz6a+eLWZSPChUGL2kx4l0nDRLEpivuk4FKUdHrUQqB6TewCVZYa883UeTv\nsT5hCvRWRBnL/5aJ5ybxzk0/lFyuciMjas6Ww2WlobwBDNz/hgKdTsuVU5I4\n+pbuduDQ45h8iEMQ0LBt9O+uIlMTlFmK64bFOAxRHfS0BUMqFTIfVhSsN9PB\nuMfAQdJGgo0vouaKPgs77UH67ZJieIBU7JRLbkPpXxoh0stn0q7OIgTYv60A\nHMw5iT9YTtkyzRz9kAd3AgZg7gDfmbC0mFWt+NbL+J2mJe/X6SscR5eyNYz5\n7M/rV2LV4hIbKCtkoEziBBl+9P1uikfAVZggeVnl2+w+uvcFI3LKhqzwEYM0\n3KCsVzWHH3Jb8nFCb0d66DdrYe7pFjSf05qB8taIxlStd0qaxKUcrnkH9vcr\nb5Rxi5I2uL6U3v77Z5hOG3wbhC2iQr+3yf7wFwuueCkUTEx3UTgeJzd4zVoJ\nZxAm1+xk/lNkhYAZnFd5aMIk04YmpFhh5DE6RozfoToN1aulsNqT0GYyrHlk\nIM4KlG5eoUiTnNSqCHb1UUnfG0B8zFrs7roG15quzOo04gh9ztgXhdyc6iRr\na6uAqmOaWmvbgBOokd9+eg2rjn002jNQww9n29q7SUSZSZVikpb0suFJ59ji\ndr8S\r\n=q96g\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","gitHead":"1ea0f1d9282201f31411ac87b8a96a244793c1f4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.5-atob-react-native_1550714627967_0.5130071483747889","host":"s3://npm-registry-packages"}},"1.2.5-atob-react-native-0":{"name":"amazon-cognito-auth-js","version":"1.2.5-atob-react-native-0","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.5-atob-react-native-0","maintainers":[{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"217f73770a0252e24ad309f5984c9642b83880eb","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.5-atob-react-native-0.tgz","fileCount":60,"integrity":"sha512-yDEiwvK+OEbOuaFGfCPWDpmzdGZayhWnsKrpLDDr9afQhz3a9BII/wR9evkM/OURiG5A+S5C4cjUfWda9XxpVQ==","signatures":[{"sig":"MEUCIQDR/rDnUG7ZN2CW2p2BxsC7G0gKZwj8Ko27NyJJMiFXQwIgfWbTqgbqc0TBiNvN+JRAUUyXoMwhpElNOhqMuzS9YEg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1299278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbxmnCRA9TVsSAnZWagAAJvkQAIab/IHVxPK8/7KJc8hq\nNsf76/wy3Fatna4Qxumbk5Zyr5o3dDHLPz0ZUEHUgnstqp+drQpzjxvDhd6b\nFbmckOrTk+637TpFGPXIIz3PL1wiqPjP85XwP7KKFnFIorJZwxr58B0DotnH\nUr2GoPFoYhtTn9HfaXKPTpVlckmSKTbArQOtMilKmwC76FJkTOm+R79RM9gi\naxcvgpPKr/a/Lmb2aRhlmLpVopckJx42jNSrG5sH3TQeNnBOBqb68c9UXH9p\nmA+qYt/xE7YAGwcE6+Blro6pSleIPJ9YjYFMeAwtqngL9RifmnQjkaL5mhy5\nUsLlJVo3DPHi2tdszHBJyuoSnbeNhrETANo31QUHmbT6utsgWXn+Cm8unCL+\n3gTlM5PZD5uBAV9qFGSKjm1A7eJYD1Gyi2p/iC5xeTVhmPKFAeX5E02nYEsa\nq4nGYN7EdyUFauFDjYDlJJkFkIgu3GJpo2ToJthhYtrjQG8VFkVvduEdKiy6\njT2nbm7cONxLmlhXI6aMNH1jE4jOpgSgggBZp1Lsz2Nucoi24gDo/3d9+14E\n8YoPqk63pa2bYFNdyZzKAMtj4fqgdetsNRkHjRqDfsrJPylzLldZAUz8tj9o\nrCmLbZ19RLhKdJX+ytaMfZ1N9JM+ffCql+m1EUwz/WYyrUV/f3rcdOJwk2bx\nJiOT\r\n=bqHf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","gitHead":"1ea0f1d9282201f31411ac87b8a96a244793c1f4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.5-atob-react-native-0_1550784934389_0.6823806116680717","host":"s3://npm-registry-packages"}},"1.2.5-atob-react-native-1":{"name":"amazon-cognito-auth-js","version":"1.2.5-atob-react-native-1","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.5-atob-react-native-1","maintainers":[{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"4e22eafda2e6cc23ce30f0ec95e835be7972532d","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.5-atob-react-native-1.tgz","fileCount":60,"integrity":"sha512-aTT1Qy+uYypbfaSYw0NU1m5j39GzmbEA0BgYeY90dJjXbUI3bi9fXJFzcAbd4XFSTjy5nwxZn9yAXvQl5lrSog==","signatures":[{"sig":"MEQCIAjxofsN+5lN579Y1sClhgrpW03ddl5UzZdof2plxSnGAiAcSDO/YLcUZz5pdXGHr6yANTDw+x2Q/zhG1v0uQ883Xw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1300780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbyPyCRA9TVsSAnZWagAA4qoP/iD8TJJtZZICSL9UPcIw\nJ3hG+8UMbLcLPjpzDitPQLPJZ2oV0ANOewD/LlqstNWcuUru4cFg+kQKIJ5e\nnJ5rzpD7xChdXEOJWoCh4C0+XbhGUswZCopyKKDtKSRWxlNqagVrP03lnBDx\nJZ075sgi3T19EbsQJl80My702Ve19iaQ8g228HICCC6Tz272d7eiVOkkNo8z\nacPV++rsr1OUxhDVrCfbOMtczr2htf2WcLtsEjN2kErGqMSBypzUc4EbfJNr\nCQ0Yht0xvA7MLyE8nyRAayGS74OYQCa2Wbiq1Ssx0y8kChOx7C1n3Wn1OxQq\nOE7LyJEoXgF1s/SbkDcfueG7U7086Im2JD1r8+RwcfqeWigQkTU55iNjoETd\nyow5h+96+KSLuus79AyBeUSD1QAbT7brCf76GJA1JBTQ+j0X3hAkgfbNQHLL\nTz6whdL8IsXlpqN764FsddBnZcnuabi1h7Oe+W6LYc3kiQIk8OG1mJlc3tSk\n+zyu3yoUF9CFlYCdl1FLlpBdI5869kqwbfiz9lK66o30ZImW8tBuB2cTaoAq\nxTAkSOlU/nIxanjx9bMo+y+vWnOjjQkpdmvVB53qtM7uzZ31kPs1iXoPrA8H\nvR5cItBOLkvBa6IqAnjjZEpKE6OoCnokLtO/m3ARwSBHcbbmYEdIsAaIkVCN\nlr4u\r\n=5VFU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","gitHead":"1ea0f1d9282201f31411ac87b8a96a244793c1f4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.5-atob-react-native-1_1550787570075_0.33554733406168724","host":"s3://npm-registry-packages"}},"1.2.5-atob-react-native-2":{"name":"amazon-cognito-auth-js","version":"1.2.5-atob-react-native-2","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.5-atob-react-native-2","maintainers":[{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"95de5de0678fe3a0ab2d1d27494d86f5916a583e","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.5-atob-react-native-2.tgz","fileCount":60,"integrity":"sha512-GJzw4IETB34Ykli/nVYJ9ED4VGrYUGTToyMf6zHRjz/o4MGOUCsnBfteji4buLpebB0vEZHc4kVTl1lZpfcbEg==","signatures":[{"sig":"MEQCIDVPMDJk710bEA/YeCRVcThFYUuLaUPfARgExDNChOylAiBvdspOSqIvmQcsCEjqaKW2TCRaG7O1ctA3EXYUVJKrAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1300780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbyU/CRA9TVsSAnZWagAANEwP/3ysVqT5axMWT8bjx28I\noYNu7GgYIPWEQ+q54Y/5i9s4+0TaGZTHf8+KNN0AWcxloGcAW+bQ7bF+htQC\nDW77L9XxGY7w27WCnP5MWhfOcfAXCJyAKqd/Y65Lv2H1JprzxI4CMhqUGmKO\n066JWv8WUxSszs/gTbIkkeQSB1Unmwj05HQH1z3/+Sqh1+StlY2tDk4NiHpl\n2pL72aKwm6MctsNwAgM02rYh3ofEITYABA0f/Z33c+ihPJn7QXua82qkLVYP\n9ktSKHdAdGfwdkV4UzpzGfNP45e/wPqLnFy8AEnJ9bW7gcf+p1kEqS+9+jvy\nl0w4qZNwGyPDFDrHLvawrRYEmC0mCfQWO3gx1DL+OVwLF0nstRMA14tzLc17\nlpMxho7L0KIez+nelICn/YAh2JKzo0qU8iiME166A4Yp+HYq7DltEMmV6Byc\nNsbO8FkV23vzDd5kcGPX+zz18XVUp1e2La4djvTb6KKXhaG1gOOUT5LBxXzm\n9efJWLLJVnAyrm4GnLPxPQTAkxkDupwd0svwZ4cUGGuTfpo/nBDUsjksvteM\nSwrLsseaDSgs3R77hWpyZKQA9uRE7hmtnm2eKfiPVKayDFidg2F9E1oDi6lW\ndzEWJtea4MFPEYYZZPjWfkXACPmwN8h+z6zdX9rxroDjFqVmU7/Vn/r+H+tX\nd0k1\r\n=hdTM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","gitHead":"1ea0f1d9282201f31411ac87b8a96a244793c1f4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.5-atob-react-native-2_1550787902239_0.7071404947375273","host":"s3://npm-registry-packages"}},"1.2.5-atob-react-native-3":{"name":"amazon-cognito-auth-js","version":"1.2.5-atob-react-native-3","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.2.5-atob-react-native-3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},{"name":"elorzafe","email":"elorzafe@amazon.com"},{"name":"jamesiri","email":"jamesiri@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"kaustavghosh06","email":"kaustav.ghosh19@gmail.com"},{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"undefobj","email":"rthrelkeld1980@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"e60efa1b22d4c939ad2aa88d55b84117eebeec67","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.2.5-atob-react-native-3.tgz","fileCount":60,"integrity":"sha512-VQM3zp63wiq4QNnq9rM+tlcZ5vZ0g89MF7zPyTwK+kpeb72LAkVUfgQMjFoLdqZ0s+PFV+5/ypVuourWLmUxyA==","signatures":[{"sig":"MEQCIH1Ep/sz/w5EdzbbLLI4b/fC3gN1tZiEi6JtlBGWUhb3AiAgGqQ34rXzK8qKjpAGMorG4ZIXrR98u3U3zc757p1t4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1301110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccI0rCRA9TVsSAnZWagAA2VkP/0FvA68wSDw+nidw48ZJ\neYYjTtmERLQkOU1HGaU0GeXFhN1W4Owlpzc1CTJsTE9HYxmDH9eUom3c6jZF\nhnwH8dBe1Jluf2yhYn7afClXp+eF9FUaYHwCYpHDOOtgGL27jwBFTdzOJHU6\na9z1OHmNYDHfwN0AlUV5WZ/JaY0kUuGKOBi51jNLywl8afIxTVbLP5OqBxat\nRelCBEghkWcTxpasaWDTZfC9b3ASDFx0SQHh/PUDd/1Hqn1y4VI7LPBS/LsV\nHsk6CLC5gAmPARu9+UpID3YgYwvnGlxlBcn9V9C5MklWuzBrRKlj4PGi0E7m\n+FZpAe272MhOImPvmodDPxEJBhcZbGO3fK5nhnyxpBvtdrerhBAgLcFv0WcI\nlgGig0BrNBKJCKWBCLjwhewNOqjzn8c8d+RgK7Si+TR1kcorOSMAqFhGi79b\nJFWJfdEfuWJCXaMZWbeOd5bHfvcYWTZZK7aFJBTy8HGRU3HI9DbzlRWhBqfh\nN57hCfWcyIbQdbotfy/BNwDCsbMC5W1oh/XTYx69jTudOziospBPr7rpKRMW\ne8eiXgHbFOM+OAczx6P2a5Oa4TAgsBgCV4lv0GINAc5Z6zg4b6p1oKhih+wV\nWnFxT/xKFXGej9CQFm+QP1wR5kwzMaoBkQiHlhHUUJ0Du8p5uB/8tcpB8pEH\nvd8g\r\n=SXKf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n* Storage (Optional): Storage provider used to store session data. By default, it uses localStorage if available or an in-memory structure.\n* LaunchUri (Optional): A function called to launch an Uri. By default it uses window.location in browsers, and the Linking class in react native.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**next**\n\n* Add support for react native.\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","gitHead":"fe62d794ee0672270c50e6e7f12e9ca9dca47259","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.2.5-atob-react-native-3_1550880042823_0.7561136331738456","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"amazon-cognito-auth-js","version":"1.3.0","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.3.0","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},{"name":"elorzafe","email":"elorzafe@amazon.com"},{"name":"jamesiri","email":"jamesiri@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"kaustavghosh06","email":"kaustav.ghosh19@gmail.com"},{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"undefobj","email":"rthrelkeld1980@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"c4e0b49e1392641ae59c7b6131f43ad2719bd28e","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.3.0.tgz","fileCount":60,"integrity":"sha512-GD5CbAE8LWZIKRWkjjeesvwNioo8Pwl5K17BBOOqIrT8e1TKaKpwO6WlEOvvVVojTCkLNCL/8DeI9l6PpyEOOg==","signatures":[{"sig":"MEQCIFmDOmZGg9rDA/H0JT8NGefL71xfp7kNHovplRSCDm9EAiAOzRD02nBN8L24oFpd66eIod2v56VR0FrdIgQjptTxFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1302209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdH+aCRA9TVsSAnZWagAALa0P/RFlraLf0kD63vXkwCiF\n/IvbNVcZ1YhblY+JAmBxnX9jmuWSgeMrk7bhGTykdszId0E/9TZAkuJkyhxQ\nF5eIcihz6HfDltp8+dK6n/6my9LY4CKev6MCT12bXuPhm7BGB+U1r4/bsTkc\n8GzR8QJ0riMLdepCxcJ62E4q9TJ26R2Y4wSDQ+gH7484umxudwXKKbq6ebkO\nyWFxjCA72AuyP4WhtI5BmrOQuGgDjXsRi0h7/4U1+iTpq1OLsgTycm3aexq8\ndu/w5GpCt7SvE+hiDf4fw1S8VIYTIqbbZBKTAtvI3QhRyRcwVnu4EtWD3MfJ\nzMTo/aA+0bObEI9GyB9RC6UYgnGKun0gFRm3ZXyBSMA5KrLjaVa653aNxfJ5\nTGcgzWky5fiiISTUxqcNAGahy/VJ5V9K4wrdY8j0ULb7PnRQo/5oAuCkwB2h\nMIlGBIYm62t3NlyVWiggrm1n4yQpV4mpIyVhtWgj4LCsE5GjU/dsV4ZjmZXo\n8EbI/hzGJ6cXB33CDUuMbnshPNoz2aheVgiau8GddGKFsE8MUmjlGxZg/YM3\n230FZOWUoUMuT8QPejtncTw47QOL3vXHiH4i/z5Ebqg/MaguORcJ8ORcX5nC\n6FFWQ2ir7eROe721aLsW8Ne3iOJPgBlQUCoBjzyIrIHAE9EDj4cGmxK21wX6\nq9+Q\r\n=azBq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"d2193fa173f15e72f356fed706fddcb3e8c6eb5b","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.3.0_1551138713849_0.48649375070110357","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"amazon-cognito-auth-js","version":"1.3.1","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.3.1","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},{"name":"elorzafe","email":"elorzafe@amazon.com"},{"name":"jamesiri","email":"jamesiri@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"kaustavghosh06","email":"kaustav.ghosh19@gmail.com"},{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"undefobj","email":"rthrelkeld1980@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"5d07265a2de295905357b2d2274733b031f4119a","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.3.1.tgz","fileCount":61,"integrity":"sha512-umEIa4HRVpsnjixXjSoQC9an+ZtTwaaI2PKVZFmgd2DKgeEYDDSFb7+NRRvEeZO068jEobaJTpti6DfGxq9Zug==","signatures":[{"sig":"MEUCIH45+JntXYgby+dnlJ8E2YFiVmJRUAvVBsQpNI1xyAPcAiEAz+EjzGv75w7h17oiQ2h72H0VaJ0bn+eTUEh3qbn6NXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1330528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdOd2CRA9TVsSAnZWagAANDYP/iHtUMwMujrsqhFLZcmW\n74BMGGU9ptyzVyIPD0sK9zddGeQUHonKnOY88pKUCXGl5VlFGIw+4Ai2sGw9\nozH9RyAhKdJsStRY3bg5rvyQeC50n/QSQA0vnMPcCw/+DzU/B7nPOpK4SGu/\nlbsSs7I9ZfmkyeFYIOeGZIglGc0dVlDL3oT7zEh62TlVmKzgzoYTmtVb1cUm\n8OvyRcCWbbwGSk0mB5eS06KQH020Re8lezoMdt0IQLNx7j278Htcd2+5pVlz\nHb95v4RuQaDZWbxzx6JfqxEMwwH09D9ZBxb6Hszj4Dn0dY1Cro7/uMl3O2Yy\nkgOpu+v6ZwqOmdU7+u+c7QLK+S1OpuvLe8yxApuu6/l6OYYLqbtHBMrzDTDM\nW87KUszNiAlMYhKvy9+RvddD8RjZhdrqRp9VEp7ZSIcZIZX2DqONFhTQC4Ar\nEix+eW2X4BXLOwhOjjy6xTczWYgcLqhumJYx57dH/8BVYTpUVENXh/yij+Tj\ndnAKzkU7OoXb+QfLhgVGtRsEv1lb2Cp1Gq8o/kJWk3HySuXELkcTfBZEgKeA\ntUhSbOQKfH1HJDvG7qu4hDbpDkvdpye0VL+/u4dAtGZKB6Ju8uW7uHNFbCE0\nig+ha+Q85Xq+sU1bxq8U8LBEl2HwNkAE9n6XnSC1t5ng/XS/N5u9ksW14MmP\n/I6R\r\n=2F+W\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"e912170bccaf81be1ac1f7dd76ebedba5ac11e04","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.3.1_1551165302017_0.9701081561957501","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"amazon-cognito-auth-js","version":"1.3.2","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.3.2","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},{"name":"elorzafe","email":"elorzafe@amazon.com"},{"name":"jamesiri","email":"jamesiri@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"kaustavghosh06","email":"kaustav.ghosh19@gmail.com"},{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"undefobj","email":"rthrelkeld1980@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"975aa6f2f6d5e39d364ff27a39b971d3d7d4b9fb","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.3.2.tgz","fileCount":61,"integrity":"sha512-XeCZN1QVGXN61PTTkgUrTm89/ukLQAZbOkJXFm9FSCtq1lVMmCKgxAuslMYh+IHmvJifIVypfvb6uiQl5EHCPg==","signatures":[{"sig":"MEQCIH6wjavtwi1vTUVKvId8tY917k1eA09y6Z0+G8PSnR8KAiAyMWIh6gtyjhWEDw9n0EUgG6ZsP6rjOQVAywuZuUZhcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1330776,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdzHvCRA9TVsSAnZWagAAcrQP/AsR/Kh7YuCFMW7OMbMr\nGqR2gM2tvuW+GdtHkUH/bpVFJQbLokIHqy9IQSsS0HQKha2sAna5yTRCwlqs\n8YA4iJhj4tZn2i74jzLXkPkqVA7PbYBULaRzn8iLFJAt7Dl1ji+cnLeLsd3p\nD3RhuTSVCvqmCbIJq2od/Hg3c7HA90PTpBXvQKj4hyAdoYxr93OqSQBTg5vD\n6V5mOTS7olq0O4Jelbvc4ycHAOxzzgGWOJFYVMbm+ELQ2IzwgxKlq81K4f2q\nDioLTFyyTP4qiLkZL91580stb2jNK/FSRTxjMaT9gfP/g6Vgl7pZj5UO/aMg\nww1RCHatk70amMjWgQ1gRPhSi46iydOGkVLI6r6t8+92rtWOLpEQA6HT+NEg\nEhdsvbaOLMl3soP/Xaex4AKlqxZI7pHWiPmf8Doy7vChQGoCGXUfHoAKyuqn\nKbePNNgthIA1JQ5JZe35SeVv+IxN+7MZuM/uXczeKz+G9C9VHU6cGHqIXzs/\nzTBZRiC+zKv94vou+g8neKWImHbadohm5JQhLyFEx8MLCEG9mGRvXvOnWBqH\nJS1TjelGGO+71rrE5a3fVJLpnRhKseWogoYMrkEQM2dar7kyttD0HywG1yMj\nFNPDWaW/COmdeJnexyn5fSwAfypGwxpPt0i6y3SNTo7szlWGL27wI37B275s\nFFDC\r\n=fFvI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"acd6affe9f4bb4856b7181ad2e7105d846cea5e4","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"8.11.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.3.2_1551315438363_0.5371811981794901","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"amazon-cognito-auth-js","version":"1.3.3","keywords":["amazon","aws","cognito","auth"],"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","_id":"amazon-cognito-auth-js@1.3.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-amplify-ops","email":"aws-amplify@amazon.com"},{"name":"elorzafe","email":"elorzafe@amazon.com"},{"name":"jamesiri","email":"jamesiri@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"},{"name":"kaustavghosh06","email":"kaustav.ghosh19@gmail.com"},{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},{"name":"mlabieniec","email":"michaellabieniec@gmail.com"},{"name":"mreddy","email":"gmreddy@amazon.com"},{"name":"powerful23","email":"wenzhuo235@gmail.com"},{"name":"undefobj","email":"rthrelkeld1980@gmail.com"}],"contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"homepage":"http://aws.amazon.com/cognito","bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"dist":{"shasum":"8278a76091300094615a4552b02453e9b970bf9c","tarball":"https://registry.npmjs.org/amazon-cognito-auth-js/-/amazon-cognito-auth-js-1.3.3.tgz","fileCount":61,"integrity":"sha512-Auyv8chr5Vw5p1FVAnczWHaXtiDX9jhlmPzB5viSqjLRDDs2UZlTA9aQAC7gaSvwx1b1INJaXvIOgm5Ctm91Nw==","signatures":[{"sig":"MEYCIQDwJKRkIZii/99Hr2Mb3pGEi4rqHx2qNnCZheKnV4XaywIhALCeDiGF12ObRqPDeuK24Duw4m6U/lWAb8auFv7vHA5C","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1334165,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaXigCRA9TVsSAnZWagAAAn0P/RtyX2HCI358OMk6Kpel\njmOIoGW0l/VAm4EMRWf8kmv/uPToaal3ffzgcMQ/s8+dLQ2QMyE93lEetUV5\nUTjoSF0BkEyMLBdGqMOStNUEw52/aebKQw1+l2GD6s8COWAlaUtmPu7KrfK7\nP2yLPnjOaWOynp1Sr1RnKDYN5CV1yVQzHEq5KxIsoaiTDMu8gnRMwEWphwPB\nckBvfMX2AwaveISuf1S5Zri/rZm1Cp+QuM+9/M4TB0nlNGLPAU93RWu+eQ3U\n4fmQKkl6Ngi1YDls1VywzuAehVkgBFrBHvwafUbUqR1FfR1YCrpQpKXfgJ6j\nLZgsJrJzVUNAw24IelfGRqkQhXAzXVQ7XueC9vTM0HsjS2jnxZyQqUBz7rwV\nOtmoGheO6ojwSqUfWgFBNQeKDJ3nBG2RtNviGrqg54p/tmTlwtRkVr92AEDy\nB1QxdiG32W6QytGzHShyUSoaZ6ZZGlaw32qPCQeHP7LfbukuSOtg/4pyrO31\nhtopy7JsXfOAiCXLAwIduwdlpfwLET496y6Ahr5Ts9oczzMhCquJBea9qcEU\nJbwQ+pE02Uvn3FOJXd+TAx55YhOFwgZ/202mAoH9bO2ISplysjhL3G+gXhet\njijSwOiJYrfDdsWdl4PUJg6FAyt0zUG9WG7hwZHI7+o/yEMY1qrEDxHO1DQx\nsUdH\r\n=3qWu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","module":"es/index.js","gitHead":"66506b4af3de24e79e6e9d562d4822bd332b3fa5","scripts":{"doc":"jsdoc src -d docs","lint":"eslint src","build":"npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min","clean":"rimraf lib es","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=commonjs NODE_ENV=development webpack dist/amazon-cognito-auth.js","build:umd:min":"cross-env BABEL_ENV=commonjs NODE_ENV=production webpack dist/amazon-cognito-auth.min.js","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib"},"_npmUser":{"name":"manuel.iglesias","email":"manuel.iglesias@gmail.com"},"licenses":[{"url":"http://aws.amazon.com/apache2.0/","type":"Apache License, Version 2.0"}],"deprecated":"The 'amazon-cognito-auth-js' package has been deprecated. Please consider migrating to '@aws-amplify/auth' or 'amazon-cognito-identity-js'.","repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"_npmVersion":"6.13.4","description":"Amazon Cognito Auth JavaScript SDK","directories":{},"jsnext:main":"es/index.js","_nodeVersion":"12.16.1","dependencies":{"js-cookie":"^2.1.4"},"_hasShrinkwrap":false,"devDependencies":{"jsdoc":"^3.4.0","eslint":"^3.3.1","rimraf":"^2.6.2","webpack":"^1.13.1","babel-cli":"^6.23.0","cross-env":"^3.2.4","babel-core":"^6.13.2","babel-loader":"^6.2.4","babel-preset-es2015":"^6.22.0","eslint-plugin-import":"^1.13.0","eslint-config-airbnb-base":"^5.0.2","eslint-import-resolver-webpack":"^0.5.1","babel-plugin-transform-es2015-modules-commonjs":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/amazon-cognito-auth-js_1.3.3_1583970463528_0.3409333192423858","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-08-14T19:19:33.894Z","modified":"2025-05-22T20:12:53.700Z","1.0.0":"2017-08-14T19:19:33.894Z","1.0.1":"2017-11-30T20:23:35.096Z","1.1.0":"2017-11-30T23:32:24.460Z","1.1.1":"2018-01-03T18:47:45.173Z","1.1.2":"2018-02-26T23:28:01.135Z","1.1.3":"2018-02-28T18:26:14.826Z","1.1.4":"2018-03-16T21:31:39.189Z","1.1.5":"2018-03-27T21:15:21.879Z","1.1.6":"2018-04-02T20:36:57.568Z","1.1.7":"2018-04-05T19:27:29.097Z","1.1.8":"2018-04-05T22:30:16.982Z","1.1.9":"2018-04-10T23:02:59.249Z","1.2.0":"2018-04-24T20:19:04.456Z","1.2.1":"2018-05-31T23:09:02.339Z","1.2.2":"2018-06-01T01:13:22.496Z","1.2.3":"2018-06-08T17:37:38.613Z","1.2.4":"2018-07-11T18:06:48.652Z","1.2.5-atob-react-native":"2019-02-21T02:03:48.220Z","1.2.5-atob-react-native-0":"2019-02-21T21:35:34.591Z","1.2.5-atob-react-native-1":"2019-02-21T22:19:30.406Z","1.2.5-atob-react-native-2":"2019-02-21T22:25:02.443Z","1.2.5-atob-react-native-3":"2019-02-23T00:00:43.013Z","1.3.0":"2019-02-25T23:51:54.164Z","1.3.1":"2019-02-26T07:15:02.170Z","1.3.2":"2019-02-28T00:57:18.501Z","1.3.3":"2020-03-11T23:47:43.649Z"},"bugs":{"url":"https://github.com/aws/amazon-cognito-auth-js/issues"},"author":{"url":"http://aws.amazon.com","name":"Amazon Web Services","email":"aws@amazon.com"},"license":"Apache-2.0","homepage":"http://aws.amazon.com/cognito","keywords":["amazon","aws","cognito","auth"],"repository":{"url":"git+https://github.com/aws/amazon-cognito-auth-js.git","type":"git"},"description":"Amazon Cognito Auth JavaScript SDK","contributors":[{"name":"Crystal Wang","email":"wyuntuo@amazon.com"},{"name":"Mahesh Reddy","email":"gmreddy@amazon.com"},{"name":"Ionut Trestian","email":"trestian@amazon.com"},{"name":"Tim Hunt","email":"timhunt@amazon.com"},{"name":"Diane Olsen","email":"diaolsen@amazon.com"}],"maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-amplify@amazon.com","name":"aws-amplify-ops"},{"email":"aws-amplify-uibuilder@amazon.com","name":"amplify-studio-uibuilder"},{"email":"amplify-codegen+npm@amazon.com","name":"amplify-codegen"},{"email":"amplify-data-dev+npm@amazon.com","name":"amplify-data-dev-npm"},{"email":"amplify-data-dev@amazon.com","name":"aws-amplify-data-runtime"},{"email":"michaellabieniec@gmail.com","name":"mlabieniec"},{"email":"gmreddy@amazon.com","name":"mreddy"},{"email":"wenzhuo235@gmail.com","name":"powerful23"},{"email":"rthrelkeld1980@gmail.com","name":"undefobj"}],"readme":"# Amazon Cognito Auth SDK for JavaScript\nYou can now use Amazon Cognito Auth to easily add sign-in and sign-out to your mobile and web apps. Your user pool in Amazon Cognito is a fully managed user directory that can scale to hundreds of millions of users, so you don't have to worry about building, securing, and scaling a solution to handle user management and authentication.\n\n[For more information about this new feature, see Amazon Cognito User Pools App Integration and Federation GA Release.](http://docs.aws.amazon.com/cognito/latest/developerguide/getting-started.html)\n\nWe welcome developer feedback on this project. You can reach us by creating an issue on the GitHub repository or posting to the Amazon Cognito Identity forums:\n\n* <https://github.com/aws/amazon-cognito-auth-js>\n* <https://forums.aws.amazon.com/forum.jspa?forumID=173>\n\n# Introduction\nThe Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.\n\nInstead of implementing a UI for sign-up and sign-in, this SDK provides the UI via a hosted page.  It supports sign-up, sign-in, confirmation, multifactor authentication, and sign-out.\n\n\n# Setup\n\nThere are two ways to install the Amazon Cognito Auth SDK for JavaScript and its dependencies, depending on your project setup and experience with modern JavaScript build tools:\n\n* Download the JavaScript libraries and include them in your HTML, or\n\n* Install the dependencies with npm and use a bundler like webpack.\n\n### Install using separate JavaScript files\n\nThis method is simpler and does not require additional tools, but may have worse performance due to the browser having to download multiple files.\n\nDownload the following JavaScript file for the required library and place it in your project:\n\t\n1. The Amazon Cognito Auth SDK for JavaScript, from `/dist/amazon-cognito-auth.min.js`\n\nOptionally, to use other AWS services, include a build of the `AWS SDK for JavaScript`.\n\nInclude all of the files in your HTML page before calling any Amazon Cognito Auth SDK APIs:\n\n```html\n<script src=\"/path/to/amazon-cognito-auth.min.js\"></script>\n<!-- optional: only if you use other AWS services -->\n<script src=\"/path/to/aws-sdk-2.6.10.js\"></script>\n```\n\n### Using NPM and Webpack\n\nThe following is a quick setup guide with specific notes for using the Amazon Cognito Auth SDK for JavaScript with Webpack, but there are many more ways it can be used. See [the Webpack site](https://webpack.github.io/), and in particular the [configuration documentation](http://webpack.github.io/docs/configuration.html)\n\nNote that webpack expects your source files to be structured as [CommonJS (Node.js-style) modules](https://webpack.github.io/docs/commonjs.html) (or [ECMAScript 2015 modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) if you are using a transpiler such as [Babel](https://babeljs.io/).) If your project is not already using modules you may wish to use [Webpack's module shimming features](http://webpack.github.io/docs/shimming-modules.html) to ease migration.\n\n* Install [Node.js](https://nodejs.org/en/) on your development machine (this will not be needed on your server.)\n* In your project add a `package.json`, either use `npm init` or the minimal, which means your repository is private:\n\n```json\n{\n\"private\" : true\n}\n```\n*  Install the Amazon Cognito Auth SDK for JavaScript and the Webpack tool into your project with `npm` (the Node Package Manager, which is installed with Node.js):\n\n```bash\n> npm install --save-dev webpack json-loader\n> npm install --save amazon-cognito-auth-js\n```\n\n* Create the configuration file for `webpack`, named `webpack.config.js`:\n\n```js\nmodule.exports = {\n  // Example setup for your project:\n  // The entry module that requires or imports the rest of your project.\n  // Must start with `./`!\n  entry: './src/entry',\n  // Place output files in `./dist/my-app.js`\n  output: {\n    path: 'dist',\n    filename: 'my-app.js'\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.json$/,\n        loader: 'json'\n      }\n    ]\n  }\n};\n```\n* Add the following into your `package.json`\n\n```js\n{\n  \"scripts\": {\n    \"build\": \"webpack\"\n  }\n}\n```\n* Build your application bundle with `npm run build`\n\n### Configuration\n\nThe Amazon Cognito Auth SDK for JavaScript requires three configuration values from your AWS Account in order to access your Cognito User Pool:\n\n* An User Pool App Client Id (required): e.g. `<TODO: add ClientId>` \n    * When creating the App, if the generate client secret box was **checked**, for /oauth2/token endpoint which gets the user's tokens, the client must pass its client_id and client_secret in the authorization header. For more info, please reference [here](http://docs.aws.amazon.com/cognito/latest/developerguide/token-endpoint.html).\n* An App Web Domain (required): e.g. `<TODO: add App Web Domain>`\n    * When you click the `Domain name` tab, you can create a domain name there and save it for record. \n* Scope Array (required): `['<TODO: your scope array here, try \"phone\", \"email\", ...>'],` e.g.`['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin']` (to get more info about scope, please reference [\"scope\" section of our doc](http://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html))\n    * When you click the `App settings` tab, you can select the identity provider which you want to use on your App. \n    * In the `sign in and sign out URLs` tab, you can set the `Callback URLs` and `Sign out URLs`. (both are required)\n    * Under the `OAuth2.0` tab, you can select the OAuth flows and scopes enabled for this app. (both are required)\n* IdentityProvider (Optional): Pre-selected identity provider (this allows to automatically trigger social provider authentication flow).e.g. `Facebook`\n* UserPoolId (Optional): e.g. `<TODO: add UserPoolId>` \n* AdvancedSecurityDataCollectionFlag (Optional): boolean flag indicating if the data collection is enabled to support cognito advanced security features. By default, this flag is set to true.\n* Storage (Optional): Storage provider used to store session data. By default, it uses localStorage if available or an in-memory structure.\n* LaunchUri (Optional): A function called to launch an Uri. By default it uses window.location in browsers, and the Linking class in react native.\n\nThe [AWS Console for Cognito User Pools](https://console.aws.amazon.com/cognito/users/) can be used to get or create these values.\n\nNote that the various errors returned by the service are valid JSON so one can access the different exception types (err.code) and status codes (err.statusCode).\n\n\n### Usage\n\nThe usage examples below use the unqualified names for types in the Amazon Cognito Auth SDK for JavaScript. Remember to import or qualify access to any of these types:\n\n```js\n// When using loose Javascript files:\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// Modules, e.g. Webpack:\nvar AmazonCognitoIdentity = require('amazon-cognito-auth-js');\nvar CognitoAuth = AmazonCognitoIdentity.CognitoAuth;\n\n// ES Modules, e.g. transpiling with Babel\nimport {CognitoAuth} from 'amazon-cognito-auth-js';\n```\n\n**Use case 1.** Registering an auth with the application. You need to create a CognitoAuth object by providing a App client ID, a App web domain, a scope array, a sign-in redirect URL, and a sign-out redirect URL: (Identity Provider, UserPoolId and AdvancedSecurityDataCollectionFlag are optional values)\n\n```js\n/*\n  TokenScopesArray\n  Valid values are found under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings\n  Example values: ['profile', 'email', 'openid', 'aws.cognito.signin.user.admin', 'phone']\n\n  RedirectUriSignOut \n  This value must match the value specified under:\n  AWS Console -> User Pools -> <Your user pool> -> App Integration -> App client settings -> Sign out URL(s)\n*/\nvar authData = {\n\tClientId : '<TODO: add ClientId>', // Your client id here\n\tAppWebDomain : '<TODO: add App Web Domain>',\n\tTokenScopesArray : ['<TODO: add scope array>'], // e.g.['phone', 'email', 'profile','openid', 'aws.cognito.signin.user.admin'],\n\tRedirectUriSignIn : '<TODO: add redirect url when signed in>',\n\tRedirectUriSignOut : '<TODO: add redirect url when signed out>',\n\tIdentityProvider : '<TODO: add identity provider you want to specify>', // e.g. 'Facebook',\n\tUserPoolId : '<TODO: add UserPoolId>', // Your user pool id here\n\tAdvancedSecurityDataCollectionFlag : '<TODO: boolean value indicating whether you want to enable advanced security data collection>', // e.g. true\n        Storage: '<TODO the storage object>' // OPTIONAL e.g. new CookieStorage(), to use the specified storage provided\n};\nvar auth = new AmazonCognitoIdentity.CognitoAuth(authData);\n```\n\nAlso you can provide onSuccess callback and onFailure callback:\n\n```js\nauth.userhandler = {\n\tonSuccess: function(result) {\n\t\talert(\"Sign in success\");\n\t\tshowSignedIn(result);\n\t},\n\tonFailure: function(err) {\n\t\talert(\"Error!\");\n\t}\n};\n```\nYou can also set `state` parameter:\n\n```js\nauth.setState(<state parameter>);\n```\n\n**Use case 2.** Sign-in using `getSession()` API:\n\n```js\nauth.getSession();\n```\n\nFor the cache tokens and scopes, use the `parseCognitoWebResponse(Response)` API, e.g. the response is the current window url:\n\n```js\nvar curUrl = window.location.href;\nauth.parseCognitoWebResponse(curUrl);\n```\nTypically, you can put this part of logic in the `onLoad()`, e.g.:\n\n```js\nfunction onLoad() {\n\tvar auth = initCognitoSDK();\n\tvar curUrl = window.location.href;\n\tauth.parseCognitoWebResponse(curUrl);\n}\n```\n\n**Use case 3.** Sign-out using `signOut()`:\n\n```js\nauth.signOut();\n```\n**Important to know**\n\nBy default, the SDK uses implicit flow(token flow), if you want to enable authorization code grant flow, you need to call useCodeGrantFlow(). For example, please check our sample index.html, in that file, you need to uncomment \"auth.useCodeGrantFlow()\".  \nAlso, when you meet some problems using our SDK, please make sure you downloaded the lastest version directly from Github repo. \n\n### Change Log\n\n**v1.3.3**\n\n* Use window.crypto if available (#224)\n\n**v1.3.2**\n\n* Add arrow function babel transform for ES build (#187)\n\n**v1.3.1**\n\n* Fix transpiling (#185)\n\n**v1.3.0**\n\n* Add support for react native (#182)\n* Call onFailure for code flow too (#135)\n* useCodeGrantFlow calls xhr.open twice (throws 'Cannot open, already sending') (#74)\n\n**v1.2.4**\n\n* To add newest /es and /lib folders.    \n\n**v1.2.3**\n\n* To add exporting cookieStorage in index.js. \n\n**v1.2.2**\n\n* To update with dist/ build files from update of last version. \n\n**v1.2.1**\n\n* To add Cookie storage and Storage as an option.    \n\n**v1.2.0**\n\n* To merge in fixing tokens being empty strings when refreshing the browser of a single page application.     \n\n\n**v1.1.9**\n\n* To sync with NPM version.  \n\n\n**v1.1.8**\n\n* Remove `parseCognitoWebResponse()` onFailure() callback to make sure sample APP works correctly. \n\n\n**v1.1.7**\n\n* Merged in library files. \n\n\n**v1.1.6**\n\n* Added support for avoiding a bug exists when sign in with Google or facebook and parse the web response. \n\n\n**v1.1.5**\n\n* Added `parseCognitoWebResponse()` onFailure() callback and fixed the `CognitoAuth.getCurrentUser()` returning `undefined` when using implicit grant flow. \n\n\n**v1.1.4**\n\n* Removed the dependency on the `CognitoIdentityServiceProvider` service from the AWS SDK for JavaScript. \n\n\n**v1.1.3**\n\n* Updated doc and uploaded `es` folder.\n\n\n**v1.1.2**\n\n* Added `isUserSignedIn()` API method and support for developers to set state parameter. Also uploaded `lib` folder.      \n\n\n**v1.1.1**\n\n* Bug fix, username should be updated when caching tokens and scopes.\n\n**v1.1.0**\n\n* Added support for Cognito Advanced Security.  \n\n\n**v1.0.1**\n\n* With multiple bug fixes.\n\n\n**v1.0.0**\n\n* GA release. In this GA service launch, we made this feature generally available. \n\n\n**v0.9.0:** \n\n* Public beta release. Developer preview.\n","readmeFilename":"README.md"}