{"_id":"passport-oauth2-refresh","_rev":"28-e046030223c6bae04f082b312b0575dd","name":"passport-oauth2-refresh","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","dist-tags":{"latest":"2.2.0"},"versions":{"0.1.0":{"name":"passport-oauth2-refresh","version":"0.1.0","description":"A passport add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"gitHead":"02444ab09eccb6838e5cd78291e83253cd7b2e67","_id":"passport-oauth2-refresh@0.1.0","_shasum":"6c334095e5cba2afed7b3725ef989b82f0b85155","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"6c334095e5cba2afed7b3725ef989b82f0b85155","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.1.0.tgz","integrity":"sha512-SYdAnN4/fhQYx04V/wlGwRVr+WLNwYAyeEceCgCBaYCI9hUwsfzQoFeo584xAjAtrBLQwYh9wvGdG6CoUxCQNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+6wLz8ZtcD8xQtMr6ATlNruMTptat9zbwp2anvgXW8QIhAPP4XPdfjgb9sSTq0Us8UMa4xg9oCyfKZ/SQ4aBDLKzA"}]}},"0.1.1":{"name":"passport-oauth2-refresh","version":"0.1.1","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"gitHead":"4fe8e3bf4c130b762cd66f4ec53e88281c1fed7e","_id":"passport-oauth2-refresh@0.1.1","_shasum":"0c4383f7aad03afd6c9a79eb6538cb37a3817eac","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"0c4383f7aad03afd6c9a79eb6538cb37a3817eac","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.1.1.tgz","integrity":"sha512-dfaek3J+3/1IMFemiGTpaEJ9tyyzpLYKgmPDyvE809sB6HvBU8a8aJQFYI7UKvyd8NW21D37uddJ0JNeeu/ydQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/Fj/HlylprwszgpQI61FCVuBlxA72vxM1BhShl4RJEAiA86wLzLNlOd90fhmLHaqgu4uZFKWjiEpW/BP1fuAqPXA=="}]}},"0.1.2":{"name":"passport-oauth2-refresh","version":"0.1.2","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"gitHead":"646fe3f3597201adeb5ee54b91aa65afd62f906f","_id":"passport-oauth2-refresh@0.1.2","_shasum":"b4528809a78267147d4bf92ff0ddd7eb91e79db9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"b4528809a78267147d4bf92ff0ddd7eb91e79db9","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.1.2.tgz","integrity":"sha512-K15P2aLu2Mk2a5B3+sFKdf6PsQihhbK7ep+55vDZHgIz2maP/w82TKfFpoX9MZVb9fWvLlI/TlZ4U0tFcfhP4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDA8vre1jx8A8zLfR+kveJKqk22NleNkMouCERXJ9QZ5AiAGrUePsvvsuUIOBsuYiqXwP3rkOPEKQWgr3aFjrGVJQg=="}]}},"0.2.0":{"name":"passport-oauth2-refresh","version":"0.2.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","peerDependencies":{"passport-oauth-2":"1.x"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"gitHead":"3e80748e94015beab1fa5a78a7990aa89b62e9d6","_id":"passport-oauth2-refresh@0.2.0","_shasum":"50fd1012ab2de6a77a6f511f738a99f42f5bb465","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"50fd1012ab2de6a77a6f511f738a99f42f5bb465","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.2.0.tgz","integrity":"sha512-0Qb9ri7CbIRDIO6aq4uybtLhbsGzwgbE9oqBiFfj3oDZERYwaJbt4Z2qj990nfcqjYBZizm2cywzX9xxy767xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqo2SqgKKaoPoThUiH19SCjwd2gUNGU3+MrXsKila3NQIgdtDMJO1DHryhASnF1qYUkM5X+xmX9i/25Y1hJKScYEE="}]}},"0.2.1":{"name":"passport-oauth2-refresh","version":"0.2.1","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","peerDependencies":{"passport-oauth2":"1.x"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"gitHead":"64459a11bf365a13caf4477c4eebc28ecf1c23d3","_id":"passport-oauth2-refresh@0.2.1","_shasum":"8d0ed8de65f918306c13c520f905f3ffc62f5685","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"8d0ed8de65f918306c13c520f905f3ffc62f5685","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.2.1.tgz","integrity":"sha512-TWdytU74siUmC0H9OvaE9Kdi8CjbtHY8g3fpDvYbeQlJ9lmRuhoz6+VphbqwzR5hl8Qjjr/Bz8PkKRyPlXBP7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6hGuBlV2taeqf+tkGMR08rgSN7NUNeJXAmvh8rI1XkAIgVIlizzXeUBJUp+MdMe7c9BFBwNDL7l+EB4XzvjSG5rY="}]}},"0.3.0":{"name":"passport-oauth2-refresh","version":"0.3.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","peerDependencies":{"passport-oauth2":"1.x"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"dependencies":{"oauth":"^0.9.12"},"gitHead":"79cc986ab1b2858134d71cd4767841812643ec44","_id":"passport-oauth2-refresh@0.3.0","_shasum":"bb8a06fe1d6ed09d8f594e74c22fec644bb5f9e8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"bb8a06fe1d6ed09d8f594e74c22fec644bb5f9e8","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.3.0.tgz","integrity":"sha512-lWkLyTiL6EmZzUJs4gQcPDQ7eERZTOrUOTdyY+Yns8W8L37pMhYqEMsogOi7QxkMuzHPa6pIhhqoin5oA0A3fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBJ8MlceKYoRdFtnLuB9My1Vkdi+21winvMyo8UOp/5wIgFwazQsAp2b4QZhXNO1QzCuIds7CTtW2VUmnourUhyuY="}]}},"0.3.1":{"name":"passport-oauth2-refresh","version":"0.3.1","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"dependencies":{"oauth":"^0.9.12"},"gitHead":"68cfaa783c1d3b9ae58f1836790d1ebf6e73450d","_id":"passport-oauth2-refresh@0.3.1","_shasum":"ec35ad41a20a9dee5c4f24ac825b7022c1f3895b","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"ec35ad41a20a9dee5c4f24ac825b7022c1f3895b","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.3.1.tgz","integrity":"sha512-P1WtvQRUt1a5QviFrNL00FldQoS5fDBJvoiYqgLZ7vMQpEDXTuDbnzZaU0oaDp9YAzHyKBwpqRxpjj1j3CKR5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJZoo8COV6hpndSnFiJQR3ky9XUTEmhAQyUGST4x4RtAiEA6F0oFaqPXoqUeBDdGb470MHdL2X0YE6LDk58vYxLI/Q="}]}},"0.4.0":{"name":"passport-oauth2-refresh","version":"0.4.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.6.0"},"dependencies":{"oauth":"0.9.x"},"gitHead":"79c66453c119c4ddc13007e03ea338137a1dfcb1","_id":"passport-oauth2-refresh@0.4.0","_shasum":"498b50cf1640966f7c1b7a57fbb15874c008cb91","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"dist":{"shasum":"498b50cf1640966f7c1b7a57fbb15874c008cb91","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-0.4.0.tgz","integrity":"sha512-iAQrZqKpTR3QTyKfWqvS6ptMCBDLnusDJ8iJEDCPOBOpfKCW02bvIOlE+DqcDHwObxEybjzRaAf380JzzmdyuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpgqinQY+hy1kpYsjdN7qq7FNL7u4WSzUGhLXO/P4TqQIhANzbo6wcnoLzIHMkK6wroU3CzlGNrk1rYR76NUk1SNAT"}]}},"1.0.0":{"name":"passport-oauth2-refresh","version":"1.0.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"*","mocha":"*","sinon":"*","sinon-chai":"*"},"engines":{"node":">=0.10.0"},"gitHead":"4d2042169b216d5f7c8b4271ace31bdab6a0d820","_id":"passport-oauth2-refresh@1.0.0","_shasum":"86f385728f5d6d33eb911c2529c1be23ad324bcf","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.3","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"dist":{"shasum":"86f385728f5d6d33eb911c2529c1be23ad324bcf","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-1.0.0.tgz","integrity":"sha512-5iesXukNUQmJHGnkw/Vh/rGACOzb+KNBlA+hmCskd+FmuU5PtixggDtSkiaNmzkLLVHrigq+LvPUYJyQ1tcY+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDZWVKzUTUuBpwIwyeA9ceovWcBi867sc9X8TReHdz1AiEAwYEelE42sKaxzHeE+SwOKBHyHuKKYYk25v1e1I8Q+Es="}]},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}]},"1.1.0":{"name":"passport-oauth2-refresh","version":"1.1.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"test":"node_modules/mocha/bin/mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","sinon":"^5.1.0","sinon-chai":"^3.1.0"},"engines":{"node":">=0.10.0"},"gitHead":"49ce2ccb804eb35aade30b6ac080363e7c603865","_id":"passport-oauth2-refresh@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"dist":{"integrity":"sha512-UsmDntTlEKj8GAME/u6hvgTgq/WC/1lh9wGKs7QEf5/e+pBo9dnphJ1qLfmwFck21lz3wHHHiPFJrihLkFSaXg==","shasum":"4e77702bd64f1ec39ddc4142edec85a4f5086f43","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-1.1.0.tgz","fileCount":8,"unpackedSize":18562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbF8MWCRA9TVsSAnZWagAAlk0P/3OkJwpiLcO4MOeMcXvc\nNBbuJK9VbkPkEiWnYmCSkkaxYOUPDPu5veiS12NCSqhgSoqJ5lr7+7i1KM/M\n6ZpcCmKABxNTSqym5Gjt6pYSmU1dnIbTYKyn/CTCQ7mYg+Of0QxBNSTQc9tF\nGoqATz05DON6OkEb+kHyevVKxCIVHz4Dlai8+8N527dJUG6mVPrlqrFlts6F\nzoVY9DP1CPXLSodczEVfijr15fcqT2VTQjE/xW6rzRPbZAiLhSmN88pNP7io\nvqmEH5FCZ0cxjbhY4PSX5VJBN2L9CZMN2qT8GQ1F6q3Wt99ShIAZfw1hbqg1\n4uOM3/Wpph7+B5Z1+jQfsR8Z+uTp4eIzkUSIfu0eFS1floxslmv835nGChGj\nuNY+8QunWvKGtu5khEeehEdvybaVfZ9bhHO6GNFXkNkA81ifbu5uz9ONeRh8\nabOlLgxD1TjtcyepYLEDRJn+f4XhRQeezFWZVTaRc1jKZiE54RITll6sHLM+\nRe1Bkft3XS8kk3UaZYakel4iqfGBQsjsL5UFE66Jr3aohxzO+XTz7BbV8kbP\ngHgoU8SfmxQzq5kT0YYTZQZxFDfOlkRKcEYFrbWvx7Q8c/DC8KNU3ZUD/Avq\nVuBVz5xQ6NixIy3/eb3kWt/Oy0Jgi7kjyG4GVFLG+nNuXH8dWvShlkKWHSEA\nltR+\r\n=OHI+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGbL0gijQYSyU++dBZvLmqlBo02DcbK9hrdBn9ZBeSoQIgK5gMM6i30eyQz0oRZHRxvVZqOj55AFlFIC/7gMhhlmI="}]},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_1.1.0_1528283925555_0.2827930533219569"},"_hasShrinkwrap":false},"2.0.0":{"name":"passport-oauth2-refresh","version":"2.0.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\" --fix","test":"mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.2.0","eslint":"^6.8.0","mocha":"^7.1.1","sinon":"^9.0.1","sinon-chai":"^3.5.0"},"engines":{"node":">=10"},"gitHead":"517c3e672bfb1650ae885af32adb29e130a08615","_id":"passport-oauth2-refresh@2.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-yXvCB6nem/O+WThhiyI3TlPXpzSGY+9+hy9OTx9QF8e9GInplyRHxHaaOhFylKvnof9UmWHAufQFZk8cO1Fb2g==","shasum":"7b19c77ff3cc000819c69f6ad9e318450f57b85e","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-2.0.0.tgz","fileCount":8,"unpackedSize":18678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee0gRCRA9TVsSAnZWagAAkTYP/3jEgUKxM8p4uKpeQfzk\nqXKhiuBlbu6GY7nxf3ra3nz0HIlP9q65uwCKh6qK86EkFOSlcOHDtS0hj5ok\nnx3D1Y5ismx/l7+X1VSVBA1IguHqIzDLLjnxOCYbZbiCobmJFhbw/EJa/wbS\n79/QNblcCoAri+6xDyx5V4fxXna3fhvoeFy2fg0uyV4HMSsuCc5PIxoo4yaR\nIZB2D3aJ+mouVJXlV4L1V0s/vZnhTGDdG7qDgWIMAeMBH+qxVSreBUeLNAPW\nCLwwvisnvmjiB8WvTNZeauQuYmtlVtzzkFWsOJOk+FhyTuQrxXzWcHbY2u7m\nWu5pDT1EDJow/iQcUFd3Qc7PiqDe9z7bp0tyzDVZ945q6KMxW5AMU5tmxy8N\nGkwoDTtOBbuqR5ce8XTUMVwZ4RCLLAuxegP7XvcGMBv/BxUC+6koiCRECVlH\nMaLIXFva5tzAFxSMcKGaJAyTrFWwDwXS3578aJATOG2KuAZk7rTMcTswvnli\nJ4MW67wxZafdROkgixTxrvl8EpSJK6ujRlgH9Mrdp/CBWQ3H1BtYsgDw50EG\n3xKUurRI3mrN9k+vLYBDHCT13XXnS0jCh8gFD2msGDR+Y/IeQcf3zgJxvxwB\nvqLR7JMWBLuVzevbdwENgBRZydz/ybjneQ4hcMa3+PdTV1oydba0ZAQXnQeN\nWUTb\r\n=z1Z+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5yUpp5HR/o8COhHtKphZT+lPhmMND/hHkb2Ts9TiRLQIgLITpa/4no2UyfoT6KDFu78KzJtoREU7QMnUrGtRVLGg="}]},"maintainers":[{"name":"fiznool","email":"fiznool@gmail.com"}],"_npmUser":{"name":"fiznool","email":"fiznool@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_2.0.0_1585137681201_0.442585527274596"},"_hasShrinkwrap":false},"2.0.1":{"name":"passport-oauth2-refresh","version":"2.0.1","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\" --fix","test":"mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.2.0","eslint":"^7.14.0","mocha":"^8.2.1","sinon":"^9.2.1","sinon-chai":"^3.5.0"},"engines":{"node":">=10"},"gitHead":"0cd24f2752adede417c414fd67165e1588866792","_id":"passport-oauth2-refresh@2.0.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-09JUZ+bxedO31oDnYTb8GRR215NFd+JfbRY85EdppfxKYli5fv0+Ghr7HaLQtYz0BtCTevwOGPCGlrPVEs5Fug==","shasum":"00a3d6faa39e9e3be40221c2773894f78d719fb2","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-2.0.1.tgz","fileCount":8,"unpackedSize":19476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfx29QCRA9TVsSAnZWagAASakP/2xwdEv2zMoPRl68Whh0\nE7lhX6kujs6jXU3MvPTOwuuITAlD4Df4L9g31B0cDQfDTyW26/iOyrG6tVX6\naBC0mcb1flSMBCmvvG+NxhMvg1V1ixWBrpLXjXUUp1ipFsbhR0OCcy6QTlLJ\nvbVOZo0/TY2dIyCjxulHynggWHkSbQQyznvcHNztgJqdgTX/D6njyHvLb3yv\nXzGU/b6OKtdFEOXFC9Iqn+wdyQl2NOLL0MK1ivK1vufRJB/MbKWaEuvT2Ra+\n1N7AaINA9DdpBbU8CmjLM5Uw/NPJRfMqPExkM/a607dboW60cwc841V16ald\neRgm6s4rigaJbpLxrbTMoGTwmvk3mxRDhsbgvlSBuorl5csLUYfLGTaygmNq\n51OIJmn8vvDUVdOj3E/T3h+OOFdFkkg2InD/jjlPT9ZZfv3zjMiPithX5i0u\n8CjuXL7YWtWi+fvyAuwxkyAj9CqYdkU1XKk7ROQ/LEzXOH+cCWjdx3FbvcZK\n3NwJL8LLQjurl/CnBFYfqbszuAN3PPHygbm1JMn0ynWYa6PUsI06kzB2sNdO\ng0dmJHfZcHUhNB5ZhqbgLb6+TWdwfIy5z1xg/pvvcMJMdsA3EbO11i07tQAa\nNy5CZ4mdgakzp5S3NZlIYYPB1s8IKl9UGlgWeqnW+AbMqnW7xh0yauRZA4sf\nz0uN\r\n=NXPD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO9ArW7/Ts74dYeIkgKVj+kH31FPKQDstSbR53qqoWzAIhANdPxiWtcmDNIu0hB3fVaafL7mTDPINQGeL1rkmWFKcJ"}]},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_2.0.1_1606905680335_0.06269600993746427"},"_hasShrinkwrap":false},"2.0.2":{"name":"passport-oauth2-refresh","version":"2.0.2","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\" --fix","prettier":"prettier --write .","test":"prettier --check . && mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.3.4","eslint":"^7.26.0","mocha":"^8.4.0","prettier":"^2.3.0","sinon":"^10.0.0","sinon-chai":"^3.6.0"},"engines":{"node":">=10"},"gitHead":"d003ee6286b6b02927465960293945745e7d61b8","_id":"passport-oauth2-refresh@2.0.2","_nodeVersion":"14.16.1","_npmVersion":"7.9.0","dist":{"integrity":"sha512-jx8UbkeXz4Et+cG6QJbGuY8SJ8Aj+nMNJ/Ta84N+/IUkaTzgg4/X7byLeIp7Q746sLFMny06cJ/d5qDYuQo9uQ==","shasum":"ac4e3fb1da3f181b9be273f90c57669fb60394e9","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-2.0.2.tgz","fileCount":10,"unpackedSize":21258,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmqwQCRA9TVsSAnZWagAAs8YP/RWtpXEJ32A0vv8uIXZK\ngCCYXlKLn7fNjTkxTU5z5vXO1fdlblCn4SI7njDTx66Ot6ypF+O+bkar3CBp\nc5usYwRyxWz6KC9OyHlVLr3nOYB9iUPqy8bTJN4bcMA7VvkHMUMzG7YfL0Oe\nh/JF+xwMMz+23WZfKuyiVlXASiYiJI1VFcLdaCESHBgHyPfMdDWR81zsrye3\nSHVs8G5WK8VyRg5LqFC9oZ+jcyL8F12w4J/VEf/acz/9/U0eDXc0InfkkV5g\nbb7p9DTfeUC/BFfWgiR5c/jQtNGxyLDgFUjzMXS9YFpu7IJTAgh++8blchTe\nYpJSzfb7taFSaV9m4TKqKpYRq4xJpYJSmuwdESZOU1crQLMYol5kJxVtfsiI\nKWXbr+uo7c3R328pF3YHyg7CmOecOgwRSyqBXpYkpskrU3c5MuV56aYN6spP\n2tBnMgecl9mfQNN4qk2uhtgyJ+3llfDo1EoPDnLbKK/YGn1cJ6PQpwJGd7Jq\n5eqObJs3ZhJjQ0jS9aXFBQ7kpoc0rQi1FBIydLCr2W89GmZwIqAzBFleOo+w\n3qKqXB4iWWlZLKAj3wXmWEGa8YDqhUftrgMwDCnSYs9lSwq4gBnNMITkEZ+I\nHwT3ovh5ViB17mJTYZIWOorzGgj0rFW6tk2vz3T1dDMvjLhJF7RxLGq/5EEF\n4/sL\r\n=2G8J\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPb15mBrr0vYFHfmW8yXK0sMy0AFnKGlaqrJ/O0Pg42AIgKKVnfT1Fg5DkRO6A8qvG7X6OeMQpZtRnCuygsR/wPD8="}]},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_2.0.2_1620749327780_0.598007939430145"},"_hasShrinkwrap":false},"2.1.0":{"name":"passport-oauth2-refresh","version":"2.1.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\" --fix","prettier":"prettier --write .","test":"prettier --check . && mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.3.4","eslint":"^7.29.0","mocha":"^9.0.1","prettier":"^2.3.2","sinon":"^11.1.1","sinon-chai":"^3.7.0"},"engines":{"node":">=10"},"gitHead":"8e07bfb80e2ef75f7bf4733724d0fcba0dc18448","_id":"passport-oauth2-refresh@2.1.0","_nodeVersion":"14.16.1","_npmVersion":"7.9.0","dist":{"integrity":"sha512-4ML7ooCESCqiTgdDBzNUFTBcPR8zQq9iM6eppEUGMMvLdsjqRL93jKwWm4Az3OJcI+Q2eIVyI8sVRcPFvxcF/A==","shasum":"c31cd133826383f5539d16ad8ab4f35ca73ce4a4","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-2.1.0.tgz","fileCount":10,"unpackedSize":25097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2ww0CRA9TVsSAnZWagAA/oYQAJ/WUJNk26rXZHKp70GN\nAw6b1HQuGk56K5t5TDaCjSi72tJjTS0a6JZktUCkAtIe/eEdTHsqT0gGGhg2\n1XPukMd78ZcRktsY1GSzUor9UISmVv9CTMNHwxJY6j9rk8ZibcJJahqb2fXk\n1lHzCYuKpe223Z5nnfCQds0AXGXXTEx7B5Vhxta1nnT3/SfzONb7GAR+H0Cq\n1e7boKHKmst6ngTlXjflqPJ3dBCXWvI5imhqEQ2s0zWeOHVP36lT03GlxXtt\nQCrT7XVYIl06v/oLJAJ0lKz+N97jD6LJWQTFePL3WfhmXTPmIAQ5N/Z4kbHu\nD+GwnDzDh5Tn2u69coTYz4CDrODzpb0O7Vl3iyoUGEEV2he5OYzii93jPYbH\nfzO3lrgvAQvBH2+vOHvJ/kso/Lz4/fN55gI1Aomm0O0uA0xAq3yoGzc+gTIb\ntQqWa5YCp5XqT+IsWWt5B43bm9m1GyNKthLh5LolgBf0byUroIKs2vKlZ0Mr\nZvEMwR2VG4bvNivo/XkMjHz2V0HnFZrMxwklfLB50SzYhBsY73YmeZbqC2zK\ndooCYJ2vEz/bjhQiG4lQ7LvNe4dvHf4ZkRhM9QjII0fZ/my79/lNR3wC7m7c\njalMhK0HvmS2jtrxZPd1zIoz/1RwlhGcnq5pMTt//F9lW14NNU55j6ymI/7F\nqr2w\r\n=CxiS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLnFuaiCAOH45oL9sj30sqT6EiAAU/nnQvRsWFX51qBQIhANJCrqPZet8S3wsRhJfJ5p7BwXbo3T60ucuMXpLLo36C"}]},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_2.1.0_1624968244306_0.08261715498524502"},"_hasShrinkwrap":false},"2.2.0":{"name":"passport-oauth2-refresh","version":"2.2.0","description":"A passport.js add-on to provide automatic OAuth 2.0 token refreshing.","main":"lib/refresh.js","directories":{"test":"test"},"scripts":{"lint":"eslint \"**/*.js\" --fix","prettier":"prettier --write .","test":"prettier --check . && mocha test/refresh.spec.js"},"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"keywords":["passport","oauth","oauth2","auth","authentication"],"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"license":"MIT","bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","devDependencies":{"chai":"^4.3.4","eslint":"^7.29.0","mocha":"^9.0.1","prettier":"^2.3.2","sinon":"^11.1.1","sinon-chai":"^3.7.0"},"engines":{"node":">=10"},"gitHead":"37d5d4d1227d6286a59c051d160def68ca5fedf5","_id":"passport-oauth2-refresh@2.2.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-yXwXHL7ZZH0s2oknnjugfvwzCB5mpJ5ZNpzkb+b/sTsHeZFbx2BXfzvwsoD4aq6gq/aWuCxBV89ef+L/cjjrjg==","shasum":"e60dd4e84e8df3c6ead87b6aab0754dec7a89aca","tarball":"https://registry.npmjs.org/passport-oauth2-refresh/-/passport-oauth2-refresh-2.2.0.tgz","fileCount":10,"unpackedSize":26041,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHEm7kLuQsRC9go4XveJomhA8P81J7HHjb0s3G0jJRdAiBaKrca6cKs+OWZ5wLyGLYc/x7Gd0z1NqgzrVUfYtwpQw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOydjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1axAAmHgjH9pcFU7UXKRrMXyuOKvIfNAzPIOoPKyFar+7UcsMy5Fa\r\nZH0LtWc2jeOvEMyk4C37lEjRpYTEKu215WYFa0J5qXpYQgHttakYprayc05P\r\nCEHG+AOzFAiEcHUH5Ro5OZdEwnZoedqtPXXAnmqWV6DnCnDv3Jf434CaaDVb\r\ngrmomA8C1nl3wz/iuGPlbmBDYqvFtmRTK3adjvqAPBCJB+z3WJI7KSqJcUK3\r\nz4e8KBh8UyDXx4lrMoK32wdST05lXmMZGa90Z5hrk+Jfz5u0ZSTInzYl0Vmc\r\nDUTHjV+2nZ8gsIG8YlzIqsTXKT9vveftRSZTIxcP406jscE6gNf3SaksNB64\r\nDMA0OFrRnU+8aeF2y+PglXldYESX5ePXPp+bGs2tX4rMHeQgsyyLuYBBjSnG\r\nDKf8b345ulq9d6iD9kVxQDXvHwfQDESyPzLZ8YzA9DiwzucPk1ZTRpx0vDia\r\nSiIEpx2Y6OX/0ivieMoMDQMlf6Jk1RIlGxF7ETrJknG1AT1wdiVhanoRKF2H\r\nnbLtSlluUivzC9w14891V/sKHU2OyGKir48eJar/RIPFpd8TLcj7+3x6oXaz\r\neGbtVTecXgTHjBnJXJOruzjJFXGHNjDGjXfndE28Z1EMnp3dlnNC8phjtfZr\r\n22fqXWbO5m1yHhKLgVcCxz70hZ/FqSNnfhY=\r\n=E/zF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"fiznool","email":"tom.spencer@studiozeffa.com"},"maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-oauth2-refresh_2.2.0_1681598306964_0.9830051734102476"},"_hasShrinkwrap":false}},"readme":"# Passport OAuth 2.0 Refresh\n\nAn add-on to the [Passport](http://passportjs.org) authentication library to provide a simple way to refresh your OAuth 2.0 access tokens.\n\n[![Build Status](https://github.com/fiznool/passport-oauth2-refresh/workflows/Node.js%20CI/badge.svg)](https://github.com/fiznool/passport-oauth2-refresh/actions/workflows/nodejs.yml)\n[![npm version](https://img.shields.io/npm/v/passport-oauth2-refresh)](https://www.npmjs.com/package/passport-oauth2-refresh)\n[![npm downloads per week](https://img.shields.io/npm/dw/passport-oauth2-refresh?color=blue)](https://www.npmjs.com/package/passport-oauth2-refresh)\n![Dependency Status](https://img.shields.io/librariesio/release/npm/passport-oauth2-refresh)\n\n## Installation\n\n```\nnpm install passport-oauth2-refresh\n```\n\n## Usage\n\nWhen setting up your passport strategies, add a call to `refresh.use()` after `passport.use()`.\n\nAn example, using the Facebook strategy:\n\n```js\nconst passport = require('passport');\nconst refresh = require('passport-oauth2-refresh');\nconst FacebookStrategy = require('passport-facebook').Strategy;\n\nconst strategy = new FacebookStrategy({\n  clientID: FACEBOOK_APP_ID,\n  clientSecret: FACEBOOK_APP_SECRET,\n  callbackURL: \"http://www.example.com/auth/facebook/callback\"\n},\nfunction(accessToken, refreshToken, profile, done) {\n  // Make sure you store the refreshToken somewhere!\n  User.findOrCreate(..., function(err, user) {\n    if (err) { return done(err); }\n    done(null, user);\n  });\n});\n\npassport.use(strategy);\nrefresh.use(strategy);\n```\n\nWhen you need to refresh the access token, call `requestNewAccessToken()`:\n\n```js\nconst refresh = require('passport-oauth2-refresh');\nrefresh.requestNewAccessToken(\n  'facebook',\n  'some_refresh_token',\n  function (err, accessToken, refreshToken) {\n    // You have a new access token, store it in the user object,\n    // or use it to make a new request.\n    // `refreshToken` may or may not exist, depending on the strategy you are using.\n    // You probably don't need it anyway, as according to the OAuth 2.0 spec,\n    // it should be the same as the initial refresh token.\n  },\n);\n```\n\n### Specific name\n\nInstead of using the default `strategy.name`, you can setup `passport-oauth2-refresh` to use an specific name instead.\n\n```js\n// Setup\npassport.use('gmail', googleStrategy);\n\n// To refresh\nrefresh.requestNewAccessToken('gmail', 'some_refresh_token', done);\n```\n\nThis can be useful if you'd like to reuse strategy objects but under a different name.\n\n### Custom OAuth2 behaviour\n\nMost passport strategies that use OAuth 2.0 should work without any additional configuration. Some strategies, however require custom OAuth configuration, or do not expose an oauth2 adapter for internal use. In these cases, a callback can be specified by calling the `use` function with an extra `options` parameter:\n\n```js\nconst { OAuth2 } = require('oauth');\n\nrefresh.use(strategy, {\n  setRefreshOAuth2() {\n    return new OAuth2(/* custom oauth config */);\n  },\n});\n```\n\nThe `setRefreshOAuth2` callback should return an instance of [the node-oauth OAuth2 class](https://github.com/ciaranj/node-oauth#oauth20).\n\nThe callback is called with two named parameters, which can be used to further customise the OAuth2 adapter:\n\n```js\nrefresh.use(strategy, {\n  setRefreshOAuth2({ strategyOAuth2, refreshOAuth2 }) {\n    // These named parameters are set for most strategies.\n    // The `refreshOAuth2` instance is a clone of the one supplied by the strategy, inheriting most of its config.\n    // Customise it here and return if necessary.\n    // For example, to set a proxy:\n    refreshOAuth2.setAgent(new HttpsProxyAgent(agentUrl));\n    return refreshOAuth2;\n  },\n});\n```\n\n### Additional parameters\n\nSome endpoints require additional parameters to be sent when requesting a new access token. To send these parameters, specify the parameters when calling `requestNewAccessToken` as follows:\n\n```js\nconst extraParams = { some: 'extra_param' };\nrefresh.requestNewAccessToken('gmail', 'some_refresh_token', extraParams, done);\n```\n\n### Multiple instances\n\nProjects that need multiple instances of Passport can construct them using the `Passport`\nconstructor available on the `passport` module. Similarly, this module provides\nan `AuthTokenRefresh` constructor that can be used instead of the single instance provided\nby default.\n\n```javascript\nconst { Passport } = require('passport');\nconst { AuthTokenRefresh } = require('passport-oauth2-refresh');\n\nconst passport = new Passport();\nconst refresh = new AuthTokenRefresh();\n\n// Additional, distinct instances of these modules can also be created\n```\n\n## Examples\n\n- See [issue #1](https://github.com/fiznool/passport-oauth2-refresh/issues/1) for an example of how to refresh a token when requesting data from the Google APIs.\n\n## Why?\n\nPassport is a library which doesn't deal in implementation-specific details. From the author:\n\n> Passport is a library for authenticating requests, and only that. It is not going to get involved in anything that is specific to OAuth, or any other authorization protocol.\n\nFair enough. Hence, this add-on was born as a way to help deal with refreshing OAuth 2.0 tokens.\n\nIt is particularly useful when dealing with Google's OAuth 2.0 implementation, which expires access tokens after 1 hour.\n\n## License\n\nMIT\n","maintainers":[{"name":"fiznool","email":"tom.spencer@studiozeffa.com"}],"time":{"modified":"2023-04-15T22:38:27.245Z","created":"2014-09-28T10:51:29.585Z","0.1.0":"2014-09-28T10:51:29.585Z","0.1.1":"2014-11-16T09:18:06.240Z","0.1.2":"2014-11-16T09:19:25.358Z","0.2.0":"2014-11-16T09:25:49.840Z","0.2.1":"2014-11-16T09:27:35.028Z","0.3.0":"2015-01-27T12:20:53.905Z","0.3.1":"2015-03-06T09:26:26.816Z","0.4.0":"2015-04-02T16:48:13.987Z","1.0.0":"2015-12-17T12:58:05.512Z","1.1.0":"2018-06-06T11:18:45.637Z","2.0.0":"2020-03-25T12:01:21.300Z","2.0.1":"2020-12-02T10:41:20.449Z","2.0.2":"2021-05-11T16:08:48.107Z","2.1.0":"2021-06-29T12:04:04.433Z","2.2.0":"2023-04-15T22:38:27.132Z"},"homepage":"https://github.com/fiznool/passport-oauth2-refresh","keywords":["passport","oauth","oauth2","auth","authentication"],"repository":{"type":"git","url":"git+https://github.com/fiznool/passport-oauth2-refresh.git"},"author":{"name":"Tom Spencer","email":"fiznool@gmail.com","url":"https://github.com/fiznool"},"bugs":{"url":"https://github.com/fiznool/passport-oauth2-refresh/issues"},"license":"MIT","readmeFilename":"README.md","users":{"jpepe":true,"sorin89":true,"rocket0191":true}}