{"_id":"@adrianjost/oauth2-firebase","_rev":"9-029289635b88146034dd457e5fab8e75","name":"@adrianjost/oauth2-firebase","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.17":{"name":"@adrianjost/oauth2-firebase","version":"0.1.17","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"yarn clean:pack && yarn clean && yarn build","package":"yarn build && yarn pack","release":"yarn build && yarn publish"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"ejs":"^2.6.1","express":"^4.16.3","firebase-admin":"~5.13.1","firebase-functions":"^2.0.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.0"},"devDependencies":{"@types/ejs":"^2.6.0","@types/express":"^4.16.0","@types/node":"^10.5.2","tslint":"^5.8.0","typescript":"^2.5.3"},"licenseText":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, \"control\" means (i) the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the\noutstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n\"submitted\" means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n2. Grant of Copyright License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n3. Grant of Patent License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution.\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of\nthis License; and\nYou must cause any modified files to carry prominent notices stating that You\nchanged the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute,\nall copyright, patent, trademark, and attribution notices from the Source form\nof the Work, excluding those notices that do not pertain to any part of the\nDerivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any\nDerivative Works that You distribute must include a readable copy of the\nattribution notices contained within such NOTICE file, excluding those notices\nthat do not pertain to any part of the Derivative Works, in at least one of the\nfollowing places: within a NOTICE text file distributed as part of the\nDerivative Works; within the Source form or documentation, if provided along\nwith the Derivative Works; or, within a display generated by the Derivative\nWorks, if and wherever such third-party notices normally appear. The contents of\nthe NOTICE file are for informational purposes only and do not modify the\nLicense. You may add Your own attribution notices within Derivative Works that\nYou distribute, alongside or as an addendum to the NOTICE text from the Work,\nprovided that such additional attribution notices cannot be construed as\nmodifying the License.\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n5. Submission of Contributions.\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n6. Trademarks.\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty.\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n8. Limitation of Liability.\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability.\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets \"[]\" replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same \"printed page\" as the copyright notice for easier identification within\nthird-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@adrianjost/oauth2-firebase@0.1.17","dist":{"shasum":"9faf435c03d16c2a5ca5ac715adc5ad8991b306c","integrity":"sha512-vxJAHqjKg6ybog9QCrJ2pUOu7vrbY71I6Ce/4v3FNyCARZMicvmk00fR4nIwmjqfg7BCN63lenp77WtVJsTDgQ==","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.17.tgz","fileCount":123,"unpackedSize":143672,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGaLhCRA9TVsSAnZWagAAkqIP/i3X/ETiv+f82FRoLTBM\nQw8OQs2HGuSjyFfuPtucuHiGBm1/QE96jpFdQK0zktmxqh1SN1TwQ4c2b/aS\noCBX4zeVgjr03YHbmDxWHDsum71HXjFpLP0QEjNBLB+KCvYC2P7LkuXkixSu\nn2nBmnJG/MrHOwemcvysgYW+kIoZzKXfKgP3nM0idN+DbyVKOTmidPFm0+Yl\nwUcPTe4e5UKdSWhxyRGIdDaOr3/dBJQ7PEnIu7xgtE9igKplfkS2Mf45A0Ia\nebMPPyFWXr+BVDJcWlfaHJgEaaWUVVjev/KrsQJdXUOx2AS1x4FJYtN20wsp\nfH7AerSdheW0rsVQRZoZls4wZrQHxAAeGO6RNHveyxriPetyYEYTm2ksWmRs\nwDSWWDfHZSJjEoSBiiW1CrAAozSK+HhhTVsqr4n9u3fZRYX92qHvHWiRdBMQ\nkXkxIxjmC6jGoASXLGORLaWuOyVR6LGgH+BY7t5OTG6eEweYAMbAw25zUYKe\nHgk6A1+VHWN7WQK8ZVVuiVVFJHxW78RLWkFX1S95mYjIMrCw45oQn54pfl8V\nAvDeNEn5RcwiCoKoJDd9lJ7UjjbJgiCAh9xbK/VQrdVnGB30+V0atlzcRf+O\nDQqsHJyf0dtxV0JO7+/ID4d7EQDQDEaO6j1Wu9jkB7l0ZHy4MUa9DsHDbVnO\nMf77\r\n=/Nbe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKZMG9gRx8cMk6rIq7ZLNtKwzpVzs6o/FjC3vY7ktRgAiEAvKxzx+PNlDka1NUjE8Y+2ninXoXHyvmwWmQAhGTan68="}]},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.17_1578738400717_0.0657775677822221"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.18":{"name":"@adrianjost/oauth2-firebase","version":"0.1.18","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"yarn clean:pack && yarn clean && yarn build","package":"yarn build && yarn pack","release":"yarn build && yarn publish"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"ejs":"^2.6.1","express":"^4.16.3","firebase-admin":"~5.13.1","firebase-functions":"^2.0.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.0"},"devDependencies":{"@types/ejs":"^2.6.0","@types/express":"^4.16.0","@types/node":"^10.5.2","tslint":"^5.8.0","typescript":"^2.5.3"},"licenseText":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, \"control\" means (i) the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the\noutstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n\"submitted\" means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n2. Grant of Copyright License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n3. Grant of Patent License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution.\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of\nthis License; and\nYou must cause any modified files to carry prominent notices stating that You\nchanged the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute,\nall copyright, patent, trademark, and attribution notices from the Source form\nof the Work, excluding those notices that do not pertain to any part of the\nDerivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any\nDerivative Works that You distribute must include a readable copy of the\nattribution notices contained within such NOTICE file, excluding those notices\nthat do not pertain to any part of the Derivative Works, in at least one of the\nfollowing places: within a NOTICE text file distributed as part of the\nDerivative Works; within the Source form or documentation, if provided along\nwith the Derivative Works; or, within a display generated by the Derivative\nWorks, if and wherever such third-party notices normally appear. The contents of\nthe NOTICE file are for informational purposes only and do not modify the\nLicense. You may add Your own attribution notices within Derivative Works that\nYou distribute, alongside or as an addendum to the NOTICE text from the Work,\nprovided that such additional attribution notices cannot be construed as\nmodifying the License.\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n5. Submission of Contributions.\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n6. Trademarks.\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty.\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n8. Limitation of Liability.\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability.\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets \"[]\" replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same \"printed page\" as the copyright notice for easier identification within\nthird-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@adrianjost/oauth2-firebase@0.1.18","dist":{"shasum":"8112dc8d0987df1639965cd0011657e7dd69f8a7","integrity":"sha512-yOjhLeVH534Zwd1o94N8AKkN8xADcoHpRLPbCC5inCaMpGNSxwdFn9asCiPPfI8xytor7DWQEQl5ZIzpsc8VJA==","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.18.tgz","fileCount":123,"unpackedSize":141699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGaTtCRA9TVsSAnZWagAARhEP/igHZC9c74I2NaL98Oz+\npT0JFcKaL+A7bH5E/UUoANxHAKTiKTH+/7flZuH56oh8tehKNnkPXxNPsxP5\nc9Z/9q8bkgcbeDQFPtUumvD0Vl2KYwRmDB5fUjd8bzHWjFx6xi9VZIwv1i3Z\ny8I9uBzSDIhReMCdViGgogtPuA7FEUAExoDcJMkZEr5Y13rzTj5Q/gQXjSYX\nYpWEuk9pmVLCONtiAYr3xO/wondQ7TsqZi5k5sLsMZzU8UaDOHZqPaTvLKEe\nAJDCQdBN6AMdJT22FP3topy5boxsGkw9EWQ4WVjRC4VMQ7nC6qGK32XpqkDk\n8mCvfCOw7k+awvyLB9KtfM48TywHW4F5Jc7eDLch1DbgHn7LcO2avvbOGnUS\ngGgJVPxzmwNT/X81xSB6cVjce7S5jsuloGBML/MTW2tGUsl/GltNcgx7TeRf\n7+hAQtnFFyDJWC62yoJg/HS+F2YomiDRgWoJMNpUBl7uohDb+D+qFNXuEPg8\npm6aBNctfR+nvvgwSjEm7Zvkr2c0GBZT3r2ZxC5Db6x3ybXPdz16FQh0jm/J\n7KBmfn9MTG4GHZYLPM7ny1Q4pELklH5dkWhBtGc1DaFYCehzidQxEThoJa/6\nPhArZhkQd5yCY7OX6baEMKqK1j055RzDxf1Bn4+5hj4RX22k14fzq/cZoSgy\n69/d\r\n=wbZ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCE59W0RQbiKknM81lxIXl9g+YJUJSeZQDzsqkp3mP/gwIhAPUm6CNlSeeOEL17vVf2k8bdphokX/V2ggUTJ6Lh4hey"}]},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.18_1578738925080_0.42649376505510417"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.19":{"name":"@adrianjost/oauth2-firebase","version":"0.1.19","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"yarn clean:pack && yarn clean && yarn build","package":"yarn build && yarn pack","release":"yarn build && yarn publish"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"ejs":"^2.6.1","express":"^4.16.3","firebase-admin":"~5.13.1","firebase-functions":"^2.0.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.0"},"devDependencies":{"@types/ejs":"^2.6.0","@types/express":"^4.16.0","@types/node":"^10.5.2","tslint":"^5.8.0","typescript":"^2.5.3"},"licenseText":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, \"control\" means (i) the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the\noutstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n\"submitted\" means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n2. Grant of Copyright License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n3. Grant of Patent License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution.\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of\nthis License; and\nYou must cause any modified files to carry prominent notices stating that You\nchanged the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute,\nall copyright, patent, trademark, and attribution notices from the Source form\nof the Work, excluding those notices that do not pertain to any part of the\nDerivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any\nDerivative Works that You distribute must include a readable copy of the\nattribution notices contained within such NOTICE file, excluding those notices\nthat do not pertain to any part of the Derivative Works, in at least one of the\nfollowing places: within a NOTICE text file distributed as part of the\nDerivative Works; within the Source form or documentation, if provided along\nwith the Derivative Works; or, within a display generated by the Derivative\nWorks, if and wherever such third-party notices normally appear. The contents of\nthe NOTICE file are for informational purposes only and do not modify the\nLicense. You may add Your own attribution notices within Derivative Works that\nYou distribute, alongside or as an addendum to the NOTICE text from the Work,\nprovided that such additional attribution notices cannot be construed as\nmodifying the License.\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n5. Submission of Contributions.\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n6. Trademarks.\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty.\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n8. Limitation of Liability.\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability.\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets \"[]\" replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same \"printed page\" as the copyright notice for easier identification within\nthird-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@adrianjost/oauth2-firebase@0.1.19","dist":{"shasum":"456f53e633236f0c98b473915481f72bec164caa","integrity":"sha512-ZSSbMMkulWtyjO621tUOHAfBsGAu5biy/ZULzuWdHb7MtznNTyGhb3PsZNcU1LNBG0zQs8WK/nQnyxzZB+PwfQ==","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.19.tgz","fileCount":123,"unpackedSize":142048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGihTCRA9TVsSAnZWagAATwoP/jXPUwqAxbu6YdQJ+Meu\n2SQR+6BcF3NavKVjtfKlYVbp4AblkoMptqPLt14OKGi36V5ehfqenuWjoyUf\nDgoMH0goCr6et/nlQYeOMAeE+5ynkqYrqHCKwzOSzj17wPJGvu2HpilVr9ab\nVr/I0thywRM+/R/I/HF5KHtEoJtKI7lo/x+tILMoiTgymRGGhUF94Av9gPhP\neazvZe6ZLzgLXnTaZBJlyS2IA0u5/2RJ3zdaU02q6eCQ7+sERh3/F6TxJrmx\nXRcqL3LwwyQ8lF5Aj1K27yymTup1vDUTDe8QeWLPF5IlmvIIyaXj8rfnzY1m\ngzayZhLfTUdIk3vHBWhvUg1sjHTAHppX0weG8O3IeSWnhwVjVMbtaIvpS5Aa\nMnjPnaksLE8YEALIeWV9+h3Z095AWUA4KMG229SkgS3wXHbuOK6XbsS9FFMj\nvONp2YQe4k1Oke7jvXg2UJZHSFbJx8yuVy8hiOeKAyIRLatlMFZcfCmPdzGG\naMJfdDdpws8xC3meiII81Clo9UXKIAHy+RdeH+x7GgfCKBLY+ZT+VRkAEU8E\nlI78IKSMgyn3IWscG4yu4dGD/p/V6WA7TOpr98nEO0p9TTwuAEpD2kityrkH\nHr98EJUOqbYRy6kJO6i/P1TsLLRZ77xQTmX82iZ1CvRWdIvsW3NQMlATSNBM\nC9FE\r\n=Aeu8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDI5vPoF4w2PvOUxz55kmdPtyZxCjEPs7/6ArwG8V5QLAIgS+TSkLledHLTXSOft19W9N8ldnfp0O4NTvvOuFmpvkg="}]},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.19_1578772563186_0.10934740355059902"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.20":{"name":"@adrianjost/oauth2-firebase","version":"0.1.20","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"yarn clean:pack && yarn clean && yarn build","package":"yarn build && yarn pack","release":"yarn build && yarn publish"},"repository":{"type":"git","url":"git+ssh://git@github.com/yoichiro/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/yoichiro/oauth2-firebase/issues","email":"yoichiro6642@gmail.com"},"homepage":"https://github.com/yoichiro/oauth2-firebase.git","dependencies":{"ejs":"^3.0.1","express":"^4.17.1","firebase-admin":"^8.9.2","firebase-functions":"^3.3.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.2"},"devDependencies":{"@types/ejs":"^3.0.0","@types/express":"^4.17.2","@types/node":"^13.7.0","tslint":"^6.0.0","typescript":"^3.7.5"},"licenseText":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, \"control\" means (i) the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the\noutstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n\"submitted\" means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n2. Grant of Copyright License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n3. Grant of Patent License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution.\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of\nthis License; and\nYou must cause any modified files to carry prominent notices stating that You\nchanged the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute,\nall copyright, patent, trademark, and attribution notices from the Source form\nof the Work, excluding those notices that do not pertain to any part of the\nDerivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any\nDerivative Works that You distribute must include a readable copy of the\nattribution notices contained within such NOTICE file, excluding those notices\nthat do not pertain to any part of the Derivative Works, in at least one of the\nfollowing places: within a NOTICE text file distributed as part of the\nDerivative Works; within the Source form or documentation, if provided along\nwith the Derivative Works; or, within a display generated by the Derivative\nWorks, if and wherever such third-party notices normally appear. The contents of\nthe NOTICE file are for informational purposes only and do not modify the\nLicense. You may add Your own attribution notices within Derivative Works that\nYou distribute, alongside or as an addendum to the NOTICE text from the Work,\nprovided that such additional attribution notices cannot be construed as\nmodifying the License.\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n5. Submission of Contributions.\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n6. Trademarks.\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty.\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n8. Limitation of Liability.\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability.\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets \"[]\" replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same \"printed page\" as the copyright notice for easier identification within\nthird-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@adrianjost/oauth2-firebase@0.1.20","dist":{"shasum":"743c18ee66aa2b2e0637c8856da0d668981e6c3e","integrity":"sha512-7mJEltRZ19GtzOZDDf8r3Ifen2KBETur2frzx4FQbjxRdHfx6PM333nnn5V4CC7SAJtfncdcsomWepQj0HD7uw==","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.20.tgz","fileCount":123,"unpackedSize":142878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePuZyCRA9TVsSAnZWagAAjzIP/R2V5l9U2VvMZ6y5g1EJ\nwrQxkQxDI4r3dZdgxFCRA0E5eVy/tpWlSa0fO9SHajFHh3WeCqD0F3MI62Aw\nkGFAH/kMhbJ+nO8QmAdIrbgTk5PXNA4JtPZiZVxbzDVHsebqIY65JBlKgEzS\nYMZ9SLtKgXTLvXwe1U/NzEHArZ6BBU+XyQhyfeFHbVP+CF/7Tlm8boCMJfXN\n5r2bY+RVx8S6wx8VkQFw7eVIPLFeRZeBux6ojifoA6aRE8uc7qwOV1PL2DdR\ns2esvPW25JJIz9wu3+p/ARedjyCOfRH2aNlU4HbOLT29kund+vwXAzjoNL7s\nAvc5g0umqJEP+FQRZ87jWKUYwxJO24lT929P7MJqYq3rg7sOOLY+3/6Aga7I\nHmkoY6e3MN3wjRLsGSXcSCCUdK60m9hAB95cN0rSZVKZ77QT+3aGEgf52GqR\neYteLwDhq6OwKbsz04SCdBKmT3LnMXZ3n0UECEa25ij7w4Ewt+z5nGlSF8ce\nXv83u/JLRSVXveqwlHlYNAn6Y9JToekHIFexm5OBG2TDrMGCxxvm+z500FWf\nPMN8g7z08De86eFI9wFkcxqpA1Z646uTNcP/vv0T+wrxFtcg65yt7UA3RwMv\nQvDA17NqUnfrLJlLufyasPJPK1Mnn4cE/ENxr3/w9H0M703ET6vWQ5c8gTCI\nU6ep\r\n=rRHR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2w/E07bj4FKNLEeYPtdXsN3qquB/jut6sLootORMNagIhAPktSJPJkjGY8Da6pcNt9a1YzcIVLcqsDsqpUdKJ/ybq"}]},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.20_1581180529314_0.6457998701186658"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.21":{"name":"@adrianjost/oauth2-firebase","version":"0.1.21","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"yarn clean:pack && yarn clean && yarn build","package":"yarn build:clean && yarn pack","release":"yarn build:clean && yarn publish"},"repository":{"type":"git","url":"git+ssh://git@github.com/yoichiro/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"ejs":"^3.0.1","express":"^4.17.1","firebase-admin":"^8.9.2","firebase-functions":"^3.3.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.2"},"devDependencies":{"@types/ejs":"^3.0.0","@types/express":"^4.17.2","@types/node":"^13.7.0","tslint":"^6.0.0","typescript":"^3.7.5"},"licenseText":"Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, \"control\" means (i) the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or (ii) ownership of fifty percent (50%) or more of the\noutstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n\"submitted\" means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n2. Grant of Copyright License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n3. Grant of Patent License.\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution.\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\nYou must give any other recipients of the Work or Derivative Works a copy of\nthis License; and\nYou must cause any modified files to carry prominent notices stating that You\nchanged the files; and\nYou must retain, in the Source form of any Derivative Works that You distribute,\nall copyright, patent, trademark, and attribution notices from the Source form\nof the Work, excluding those notices that do not pertain to any part of the\nDerivative Works; and\nIf the Work includes a \"NOTICE\" text file as part of its distribution, then any\nDerivative Works that You distribute must include a readable copy of the\nattribution notices contained within such NOTICE file, excluding those notices\nthat do not pertain to any part of the Derivative Works, in at least one of the\nfollowing places: within a NOTICE text file distributed as part of the\nDerivative Works; within the Source form or documentation, if provided along\nwith the Derivative Works; or, within a display generated by the Derivative\nWorks, if and wherever such third-party notices normally appear. The contents of\nthe NOTICE file are for informational purposes only and do not modify the\nLicense. You may add Your own attribution notices within Derivative Works that\nYou distribute, alongside or as an addendum to the NOTICE text from the Work,\nprovided that such additional attribution notices cannot be construed as\nmodifying the License.\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n5. Submission of Contributions.\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n6. Trademarks.\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty.\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n8. Limitation of Liability.\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability.\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets \"[]\" replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same \"printed page\" as the copyright notice for easier identification within\nthird-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@adrianjost/oauth2-firebase@0.1.21","dist":{"shasum":"68dbb1c873533bfe5fff943ec0b68f1cf0988e70","integrity":"sha512-MOKi60jmrSLPQ6qLg1KJJU2bYM7SvbJP1CPzy66OkUo7MACrKoDF9TEZKoE90Ov/i7ecFmKo6yc7eroxFY86ww==","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.21.tgz","fileCount":123,"unpackedSize":143952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqLCcCRA9TVsSAnZWagAA4N4P/AjDgWDHRU5eATb367Vi\nvZ4aiiBuGGMz2DGcRr7CKiG4h3n21G7V+gjRG7dJA2pmE6IVttRrH3Monoms\n+b8ZRqhMBZZxvtf++09p4IqUPJuW6AqGKmsoMp/V1pw9TRH/eRSwSYJsfQZD\n6Xlh2vi9/G28+S0TT9Zby390cwVZ6XMJj5lnZtNC1rPAs/sWdhO0KrRla6GC\nxzyxiSu7bU3jfpRq+Qx9R6VikC7pyTLGmOX0HdXO+RbZbVc8Z/YkExuDGEA6\nEjZ34zhqVDiMSahww+doPNB19NHmDbiAfwPjrnVM8WE4651WxjOS98ZRyV6Y\n+tiA502QZbGJYjI69OJjQJYUvW4hQsNQ4iM5YmkG8JMiixy/WanAwE+3yMKh\nNle4HVw0sm6+9f3HghFbqhHtRRFEePodZJ/1ZthApi2l8dmrMN6yxlaf2VIf\nxXuLSWjUEQqnm2Ufg3wtAWNRU+SJij8YLOuaxBe2vVpTP4DUvNgSUPYnOf52\n+tB0fX1jw89vat2vtJIaZLP9yEyKVhcCReYvpk/J6VGfgJSilC8xo0yoliuJ\nD36xbJIQaMvTtJFiulLZ96lMpdclxv6B+qgcVcO3g/zTULK8DUFpdeiaGB4f\nTbwyWy15klv9yOybYLYQs0I8/sNPbKvMwG3EbCSlgw8j4a4iLCt0VsjJ8MOe\n8tyy\r\n=1N8y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNvzHoYY0HTXeiu9+iGlib67KWOyxz76qFbPfZV8JHaAiEApfpGIEOY2X7E1jr8r3kHG9/C445kWdesHZ9Tkttu+kw="}]},"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.21_1621667995735_0.5852794577152061"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.1.22":{"name":"@adrianjost/oauth2-firebase","version":"0.1.22","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"npm run clean:pack && npm run clean && npm run build","release":"npm run build:clean && npm run publish"},"repository":{"type":"git","url":"git+ssh://git@github.com/yoichiro/oauth2-firebase.git"},"author":{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"},"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"ejs":"^3.1.6","express":"^4.17.3","firebase-admin":"^10.0.2","firebase-functions":"^3.18.1","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.3"},"devDependencies":{"@types/ejs":"^3.1.0","@types/express":"^4.17.13","@types/node":"^17.0.21","tslint":"^6.1.3","typescript":"^4.6.2"},"gitHead":"27bcf5e27842e91ae550d93aa0e4535f275d917f","_id":"@adrianjost/oauth2-firebase@0.1.22","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-6KOyGFMr6mufDYSVTYZK1y/PM1dpP8/BPAPT09U5YsUs4S+H8s2AI2dLjH0m1n0OTQI45ZoT7qSecNfvJqtVPw==","shasum":"789bcd0137c459b9a81313770723aa2af86816a4","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-0.1.22.tgz","fileCount":105,"unpackedSize":145289,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL56BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVTA/+Ol5OCUESGsl2fEQGxZrLZ5IGgCEskRG1tLQ9mujdFl8Y80/I\r\nd4Z0RAJEyuPxfnYZdbH1HuScWbv6W6ty1VYowc5GOdHR3ZY3ariE+Vm3bgdQ\r\nHdmiDFJvXqb2XPzvlhG+RyxyTB4/Jm81G3BhGN9ctT/g9ANvxJYtjxHNKsHO\r\n7FyIZorLufNLx4r+3kUz2rsZhqKn4ijHESUOa+fabE/Ug2cBXFgqIuSVBZLq\r\nmlKziQrSFuN7gf4uM/xIebB2xMSenHwZWngNz4CZ6HjLrlQDkvMSVQqkiU/M\r\nJZfP1MA75ZoCAYNdiOt9MXiC4GYwrObB4cAv9S8jdqjTYv5mNVeJofj0SWj4\r\nV1do8lyx0Z0fta4mQ4+OgOO/xDPccn6m/0TU6H0gVkYgZMDi1XFgyRoHPFD4\r\nNIyV5kpjtL4RC8WkVSctlaZ4W/kVXqYG0XIrLtDBE3aazjPx1tJ4rU7/x0IV\r\n68DRTeGUjwrhd0E6B2+2MmIibAOVhQJSgoiliK3YfWjuUJzwOhenRsV5/Cf7\r\nJIVmko9KhF5knAZ9DKS+6poDvdFTQ+WsamyrPxkqD/UE46AlG+NeCKE9q1b9\r\nTHVeOxrYSVg6oiVaCyFWtiUR9oUh0pOSksJuYWV9LaKXUXumKAEw7DeePuV1\r\nl5OKG3O7ZEygn49FiOfcaZD2m2l/xA/iCDs=\r\n=3zOo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETc/ziJT15BkLEjcU0B/0t5tYq98fy8aglQqXyu5SVxAiBiSFOTKeGQ1Mg7dPozYfbW+qvfaQQ+q+xVwi23v3ViWg=="}]},"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_0.1.22_1647287937350_0.35208310190808323"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0-alpha.2":{"name":"@adrianjost/oauth2-firebase","version":"1.0.0-alpha.2","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prettier":"prettier --write \"src/**/*.ts\"","lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"npm run clean:pack && npm run clean && npm run build","release":"npm run build:clean && npm run publish"},"repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"contributors":[{"name":"Adrian Jost","url":"https://github.com/adrianjost"},{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"express":"^4.17.3","firebase-admin":"^11.3.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.3"},"devDependencies":{"@types/express":"^4.17.13","@types/node":"^17.0.21","prettier":"^2.8.0","tslint":"^6.1.3","typescript":"^4.6.2"},"gitHead":"d72872b2d0b9122255ab5121cd76f65dc1853d5e","_id":"@adrianjost/oauth2-firebase@1.0.0-alpha.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-lk2x1az1i2OmGhh1Ge5VxHQ1zWaxNrJPCHYPGgLaf77YIh4M7HazHAgma5x2m2ZgqsuHz6pJmuoPBU5CaYmnfQ==","shasum":"8573e440e2392c8b174faa4a33487148551f52a6","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-1.0.0-alpha.2.tgz","fileCount":112,"unpackedSize":160614,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKB+eTG1C9JacvukergbSuQg9wEBQUCmcAEnzLUufVRgIgaC/Cw8LJ3YjkuCibfHrOtxKRw4u2+4OgjTev71zAUGY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjg77RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9cxAAoHdnmnk0q8Yo5FM6NKXsyXEMfUkEdSFznD90+yACY0tgiIjs\r\nDujEb5lxVKLz05RD+0oOq0jGSprf4505isNnITMQkQ+/2M+B6nyUuYn/E/XL\r\nGCo1yh/BwjhV1z+VlHvdbR98i26QrckFvZHzVVak0AThTHl0OnFpinIP0KJG\r\npUixjBczModFZ+ALdgFWnbyFantmc0IUcHqo57FwpHYhS/44j8rVQAa3YWyo\r\nPJolPIFSz+mcrtCtdEPBmOk9jccba1tFjqVhfMkAAhYb37exWoHdxAaJRtX9\r\n9pM3mPqLaTct3rOdGlgE5z28uC2F0fQSPX36WsNPufw1DOjbWi/hinyddCbz\r\nmr/7L4EMvdEb75nBFjd24cq5pOGo+Eic+rxOQWhqTFG1ksZxjxIGyxejGk8E\r\n4Z61DhpYRu9iDn4vpMpROgQYx5+ziMN6PvLN1qwMDQQGR9AVj21msQX1pI3L\r\n03jSZFOddbBxQN9o2YMa0aa/WaVRTJJgo0mGTaCJOWcPAXGv+LAxP9DlfL5X\r\nWrF9SpPB9rGlMUaJXeDSX3SethKxuY/ebdRT0AKBzDhvt2btrYrSjnf8R3Sp\r\nYzagmZjXbLP94SPZcuVJwH+jLCl7nF38AtfgT+4SiwrSkVUAAaVT3N/KxweK\r\nayY0JL1BaDrQO2JKuVPxMeBmKhsQFW4fzrg=\r\n=wjCZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_1.0.0-alpha.2_1669578449689_0.602911024066823"},"_hasShrinkwrap":false},"1.0.0":{"name":"@adrianjost/oauth2-firebase","version":"1.0.0","description":"This library provides OAuth2 server implementation for Firebase","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"prettier":"prettier --write \"src/**/*.ts\"","lint":"tslint -p .","clean":"rm -rf dist","clean:pack":"rm -f *.tgz","build":"tsc","build:watch":"tsc -w","build:clean":"npm run clean:pack && npm run clean && npm run build","release":"npm run build:clean && npm run publish"},"repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"contributors":[{"name":"Adrian Jost","url":"https://github.com/adrianjost"},{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"homepage":"https://github.com/adrianjost/oauth2-firebase.git","dependencies":{"express":"^4.17.3","firebase-admin":"^11.3.0","oauth2-nodejs":"^0.2.0","secure-random-string":"^1.1.3"},"devDependencies":{"@types/express":"^4.17.13","@types/node":"^17.0.21","prettier":"^2.8.0","tslint":"^6.1.3","typescript":"^4.6.2"},"gitHead":"5eb4e847681f966e0e8d8db640ff49d175f53a91","_id":"@adrianjost/oauth2-firebase@1.0.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-gurcQdiEzpxCr8knY7oHS7UJSwrdejof6U5k6niSae0t6UVOJxGLTH3uO+MiiX6at0smUBuBOcRo5gsOKILh4w==","shasum":"c3aab0a6056ad2541d629e8ea9f319716e5321b8","tarball":"https://registry.npmjs.org/@adrianjost/oauth2-firebase/-/oauth2-firebase-1.0.0.tgz","fileCount":112,"unpackedSize":160606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHsRjSyp0BD3vX6tljPvNHG7S8/cIbEsIhG9lSSUAa1fAiEAuQhxT+YWhZIoDqoRNrR96z/HwAbElMGMLc3zQoEz3cY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjg8OIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpbfw/6Ap7u4ejOivbsrqqNxf6tUj6sWfNDfH0D9WtKpxz44NylIi3t\r\n6zDXPWVR6WF1jJuPS5l7lfUMK3goejRyVugWuKF+e3SeAKiSZsdDTLGHe7Pb\r\n4GxabBI93sp4rw+3nc0j9L0gR27P41ihyLlHD/A7N8z5t9W8c5lp7eMMBKst\r\nJYhPleFq+QmA7ln6uoHRLCrQJJ3MLPYb8vX25eNLQJAb7qTsxJGxX9FADpST\r\npjZVnDAjSifL5x0ClzjpxnZPQozfg4q7vZyPK4aOkZJD+/6xpBiTC/X4SDJy\r\nvE5tYmt9IW1MvmQ1g96a2YFQtbP46aDD64bLPk+S/tCkkFppDwJgYaoz9vlC\r\n78gl3uLGiwe157tVfKUO0CQpuMmpbzBNi+Fu4O/0dLU/+TZIhJbrd3z13hPC\r\naXwCyCYk/j9GuXOkQRIWPyMz8GuqZnoBAFdVLzSBaDOGkG5150O55o/P8igP\r\njUnk7/bckfkMzy8cx9RFweCwLsbecOIBnKi/xytSuvK0LTSK5lAUatJ8KbVa\r\nJmPHAn7WxhQMvcDNH0+tVVCSvyZ2eLoGJysR1IW1NO58Z+GXHuJSGImmqbbN\r\nX02sydn8Nl2N2taOHp3tnUCpwy/EyiEMfjO+vMojsmOeLUxh05GhI418zoYP\r\nB1V/m9KUfDH7myhNhUMVvvg5/TkJ8kNezOA=\r\n=XCTL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"adrianjost","email":"npm@adrianjost.dev"},"directories":{},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth2-firebase_1.0.0_1669579655825_0.14772209557035"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-11T10:26:40.688Z","0.1.17":"2020-01-11T10:26:40.829Z","modified":"2022-11-27T20:07:36.134Z","0.1.18":"2020-01-11T10:35:25.328Z","0.1.19":"2020-01-11T19:56:03.312Z","0.1.20":"2020-02-08T16:48:49.455Z","0.1.21":"2021-05-22T07:19:55.860Z","0.1.22":"2022-03-14T19:58:57.565Z","1.0.0-alpha.2":"2022-11-27T19:47:29.931Z","1.0.0":"2022-11-27T20:07:36.052Z"},"maintainers":[{"name":"adrianjost","email":"npm@adrianjost.dev"}],"description":"This library provides OAuth2 server implementation for Firebase","homepage":"https://github.com/adrianjost/oauth2-firebase.git","repository":{"type":"git","url":"git+ssh://git@github.com/adrianjost/oauth2-firebase.git"},"bugs":{"url":"https://github.com/adrianjost/oauth2-firebase/issues"},"license":"Apache-2.0","readme":"# @adrianjost/oauth2-firebase\r\n\r\n> ⚠️ This is a fork of [`oauth2-firebase`](https://github.com/yoichiro/oauth2-firebase), with additional support and customizations. More details below.\r\n\r\nThis library provides OAuth2 server implementation for Firebase. The points are:\r\n\r\n- Supporting Google Sign-In, GitHub Login and Facebook Login to authenticate users as Federation ID provider using Firebase Authentication.\r\n- Providing each endpoint for Cloud Functions.\r\n- Storing information into Cloud Firestore.\r\n- Supporting Authorization Code Grant, Implicit Grant and Client Credentials grant of OAuth 2.0.\r\n\r\n[![NPM Version](https://img.shields.io/npm/v/@adrianjost/oauth2-firebase.svg)](https://www.npmjs.com/package/@adrianjost/oauth2-firebase)\r\n\r\n## Differences to oauth2-firebase\r\n\r\n- support for custom authentication pages\r\n- define your own CF invocator, to configure your preferred execution region region and compute resources.\r\n  - this also allows you to implement a single CF wrapper to have all oauth2 endpoints in one CF.\r\n- less dependencies - no ejs => smaller bundle size\r\n\r\n# How to install\r\n\r\nThis section describes how to use this library.\r\n\r\n## Prerequisite\r\n\r\nYou must already have some Firebase project which enables Cloud Functions, Cloud Firestore and Firebase Authentication.\r\nEspecially, it is necessary to enable the Google Sign-In or Facebook Login for Federation ID provider on the Firebase Authentication.\r\n\r\n## Install this library\r\n\r\nThis library has been providing as JavaScript library on the npm repository. You can install this library\r\nwith the `npm` command. We represent your project directory `${PROJECT_HOME}`.\r\n\r\n```bash\r\n$ cd ${PROJECT_HOME}\r\n$ cd functions\r\n$ npm install @adrianjost/oauth2-firebase --save\r\n```\r\n\r\n## Define endpoints as Cloud Functions\r\n\r\nThis library provides some endpoints for OAuth 2.0. Each endpoint is a handler function for the express.\r\n\r\nIf you use the TypeScript to write your functions, add the following code to your `functions/index.ts` file.\r\n\r\n```\r\n$ vi index.ts\r\n```\r\n\r\nThe code you need to write is the following:\r\n\r\n**Google Sign-In**\r\n\r\n```typescript\r\nimport * as functions from \"firebase-functions\";\r\nimport {\r\n  authorize,\r\n  Configuration,\r\n  googleAccountAuthentication,\r\n  token,\r\n} from \"@adrianjost/oauth2-firebase\";\r\n\r\nConfiguration.init({\r\n  crypto_auth_token_secret_key_32:\r\n    functions.config().crypto.auth_token_secret_key_32,\r\n  project_api_key: functions.config().project.api_key,\r\n});\r\n\r\nexports.token = functions.https.onRequest(token());\r\nexports.authorize = functions.https.onRequest(authorize());\r\nexports.authentication = functions.https.onRequest(\r\n  googleAccountAuthentication()\r\n);\r\n\r\n// ...\r\n```\r\n\r\n**Facebook Login**\r\n\r\n```typescript\r\nimport * as functions from \"firebase-functions\";\r\nimport {\r\n  authorize,\r\n  Configuration,\r\n  facebookAccountAuthentication,\r\n  token,\r\n} from \"@adrianjost/oauth2-firebase\";\r\n\r\nConfiguration.init({\r\n  crypto_auth_token_secret_key_32:\r\n    functions.config().crypto.auth_token_secret_key_32,\r\n  project_api_key: functions.config().project.api_key,\r\n});\r\n\r\nexports.token = functions.https.onRequest(token());\r\nexports.authorize = functions.https.onRequest(authorize());\r\nexports.authentication = functions.https.onRequest(\r\n  facebookAccountAuthentication()\r\n);\r\n\r\n// ...\r\n```\r\n\r\n**GitHub Login**\r\n\r\n```typescript\r\nimport * as functions from \"firebase-functions\";\r\nimport {\r\n  authorize,\r\n  Configuration,\r\n  githubAccountAuthentication,\r\n  token,\r\n} from \"@adrianjost/oauth2-firebase\";\r\n\r\nConfiguration.init({\r\n  crypto_auth_token_secret_key_32:\r\n    functions.config().crypto.auth_token_secret_key_32,\r\n  project_api_key: functions.config().project.api_key,\r\n});\r\n\r\nexports.token = functions.https.onRequest(token());\r\nexports.authorize = functions.https.onRequest(authorize());\r\nexports.authentication = functions.https.onRequest(\r\n  githubAccountAuthentication()\r\n);\r\n\r\n// ...\r\n```\r\n\r\nBy the code above, the following endpoints are defined:\r\n\r\n- `https://.../token` - Token endpoint.\r\n- `https://.../authorize` - Authorization endpoint.\r\n- `https://.../authentication` - Login page for Google Sign-In.\r\n\r\n## Generate a shared key\r\n\r\nThis library uses a shared key for navigating pages. You need to generate a random string for the shared key.\r\nThe string must be 32 length. For example:\r\n\r\n```bash\r\n$ cat /dev/urandom | base64 | fold -w 32 | head -n 1\r\n```\r\n\r\n## Set a configuration value to your project\r\n\r\nAfter generating the random string, you need to set the string as the shared key with the following `firebase` command.\r\n\r\n```bash\r\nfirebase functions:config:set crypto.auth_token_secret_key_32=<YOUR_GENERATED_RANDOM_STRING>\r\n```\r\n\r\nIn addition, you need to set the API Key value of your Firebase project. You can retrieve the API Key value by the\r\nfollowing steps:\r\n\r\n1. Go to the setting page of your Firebase project: `https://console.firebase.google.com/project/<YOUR_PROJECT_ID>/settings/general/`\r\n1. Get the string of the field labeled `Web API Key`.\r\n\r\nThen, execute the following command to register the configuration:\r\n\r\n```bash\r\nfirebase functions:config:set project.api_key=<YOUR_API_KEY>\r\n```\r\n\r\n## Deploy your project\r\n\r\nAfter writing the code and setting the configuration, deploy your project to the Firebase.\r\n\r\n```bash\r\n$ firebase deploy --only functions\r\n```\r\n\r\n# Operations\r\n\r\nYou need to setup the database to operate OAuth2.0 server as like the following:\r\n\r\n- Register your client\r\n- Set a description for each scope\r\n\r\n## Register your client\r\n\r\nIn OAuth2.0, each client must be registered in advance. This library uses the Cloud Firestore as the storage\r\nfor the client definitions. In the current version, you need to register client definitions with the Firebase Console\r\nmanually. To register a client definition, add a new doc in a \"clients\" collection as like the following:\r\n\r\n- Collection: `clients`\r\n- Doc ID: Auto-generated. This will be used as a Client ID value.\r\n- Fields:\r\n  - `user_id` - The user ID which represents this client as a user.\r\n  - `provider_name` - The provider name who this client provides.\r\n  - `client_secret` - The client secret string. You need to generate this string as the shared key, and need to share the provider.\r\n  - `redirect_uri` - If this client supports Authorization Code grant and Implicit grant, you need to set this redirect_uri string.\r\n  - `grant_type` - This is an object. Each key represents a grant type, and each value is boolean whether the grant type is supported or not. You need to set these entries: `authorization_code`, `password`, `client_credentials` and `refresh_token`.\r\n  - `response_type` - This is an object. Each key represents a response type, and each value is boolean whether the response type is supported or not. You need to set these entries: `code` and `token`.\r\n  - `scope` - This is an object. Each key represents a scope, and each value is boolean whether the scope is supported or not. You need to set the entry: `profile`.\r\n\r\nThe following is a sample JSON string which represents the values above:\r\n\r\n```json\r\n{\r\n  \"user_id\": \"client@123\",\r\n  \"provider_name\": \"Google, Inc.\",\r\n  \"client_secret\": \"foobar123456\",\r\n  \"redirect_uri\": \"https://foobar.com/foo/bar/baz\",\r\n  \"grant_type\": {\r\n    \"authorization_code\": true,\r\n    \"password\": false,\r\n    \"client_credentials\": true,\r\n    \"refresh_token\": true\r\n  },\r\n  \"response_type\": {\r\n    \"code\": true,\r\n    \"token\": true\r\n  },\r\n  \"scope\": {\r\n    \"profile\": true\r\n  }\r\n}\r\n```\r\n\r\n## Set a description for each scope\r\n\r\nThis library shows a consent page to ask whether they allow or deny scopes. You need to register descriptions for each scope with the Firebase Console manually. To register a scope description, add a new doc in a \"scopes\" collection as like the following:\r\n\r\n- Collection: `scopes`\r\n- Doc ID: Auto-generated.\r\n- Fields:\r\n  - `name` - Scope name (ex. \"profile\").\r\n  - `description` - Scope description (ex. \"User profile information (User ID and Nickname)\").\r\n\r\nThe following is a sample JSON string which represents the values above:\r\n\r\n```json\r\n{\r\n  \"name\": \"profile\",\r\n  \"description\": \"User profile information (User ID and Nickname)\"\r\n}\r\n```\r\n\r\n# Use Additional Endpoints\r\n\r\nThis library provides some additional endpoints:\r\n\r\n- userinfo - Userinfo API endpoint.\r\n- tokeninfo - Tokeninfo API endpoint.\r\n\r\n## Userinfo API endpoint\r\n\r\nIn OpenID Connect specification, the userinfo endpoint is defined. It provides the authenticated user's information.\r\nYou can provide the userinfo API endpoint easily by writing the following code:\r\n\r\n```typescript\r\nimport {userinfo} from \"@adrianjost/oauth2-firebase\";\r\n...\r\nexports.userinfo = functions.https.onRequest(userinfo());\r\n```\r\n\r\nThis userinfo endpoint works as a protected resource endpoint. That is, the access token is necessary to use this endpoint.\r\nFor example:\r\n\r\n```bash\r\n$ curl -X POST -H \"Authorization: Bearer <YOUR_ACCESS_TOKEN>\" https://.../userinfo\r\n```\r\n\r\nIf the access token is valid, you will retrieve the following result:\r\n\r\n```json\r\n{\r\n  \"sub\": \"<AUTHENTICATED_USER_ID>\",\r\n  \"name\": \"<AUTHENTICATED_USER_NAME>\"\r\n}\r\n```\r\n\r\n## Tokeninfo API endpoint\r\n\r\nThe tokeninfo API endpoint provides the information of the passed access token. By this endpoint, you can confirm\r\nwhether the passed access token is issued for your client or not. You can provide the tokeninfo API endpoint easily by\r\nwriting the following code:\r\n\r\n```typescript\r\nimport {tokeninfo} from \"@adrianjost/oauth2-firebase\";\r\n...\r\nexports.tokeninfo = functions.https.onRequest(tokeninfo());\r\n```\r\n\r\nThe tokeninfo API endpoint accepts an access token as a query parameter called \"access_token\". For example:\r\n\r\n```bash\r\ncurl https://.../tokeninfo?access_token=<YOUR_ACCESS_TOKEN>\r\n```\r\n\r\nIf the access token is valid, you will retrieve the following result:\r\n\r\n```json\r\n{\r\n  \"aud\": \"<CLIENT_ID>\",\r\n  \"sub\": \"<USER_ID>\",\r\n  \"expires_in\": \"<EXPIRES_IN_VALUE>\",\r\n  \"scope\": \"<SCOPE_VALUES>\"\r\n}\r\n```\r\n\r\nYou can check whether the access token is for your client or not by comparing the `aud` value.\r\n\r\n# Configurations\r\n\r\nYou can configure each behavior of this library.\r\n\r\n## Set expires_in values to access tokens\r\n\r\nYou can set each expires_in values (unit: sec) for access tokens per grant types. For example:\r\n\r\n```typescript\r\nconst expiresInMap = new Map<string, number>();\r\nexpiresInMap.set(\"authorization_code\", 2678400);\r\nexpiresInMap.set(\"implicit\", 86400);\r\nexpiresInMap.set(\"password\", 86400);\r\nexpiresInMap.set(\"client_credentials\", 2678400);\r\nexpiresInMap.set(\"refresh_token\", 2678400);\r\nConfiguration.init({\r\n  ...\r\n  tokens_expires_in: expiresInMap\r\n});\r\n```\r\n\r\nIn this library, the default values are:\r\n\r\n- Authorization Code Grant: 86400\r\n- Implicit Grant: 3600\r\n- Password: 86400\r\n- Client Credentials: 86400\r\n- Refresh Token: 86400\r\n\r\n## Customize the consent page design\r\n\r\nThis library provides a very simple design of the consent page. But, you can customize the design. For instance, you\r\ncan provide your own template string for the consent page from your code.\r\n\r\nTo customize the page design, you need to create a new class which implements the `ConsentViewTemplate` interface.\r\nFor example, the class code will be like the following:\r\n\r\n```typescript\r\nimport {\r\n  ConsentData,\r\n  ConsentViewTemplate,\r\n} from \"@adrianjost/oauth2-firebase/dist/endpoint/views/consent_view_template\";\r\n\r\nexport class MyConsentViewTemplate implements ConsentViewTemplate {\r\n  public provide() {\r\n    return async (\r\n      data: ConsentData\r\n    ): Promise<string> => /*html*/ `<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n  <meta charset=\"UTF-8\" />\r\n  <meta\r\n    name=\"viewport\"\r\n    content=\"width=device-width, initial-scale=1, maximum-scale=1\"\r\n  />\r\n  <title>Authorization page</title>\r\n</head>\r\n<body>\r\n  <p>${data.providerName} requests the following permissions:</p>\r\n  <ul>\r\n    ${data.scopeString\r\n      .split(\" \")\r\n      .map((key) => `<li>${data.scopes.get(key)}</li>`)\r\n      .join(\"\")}\r\n  </ul>\r\n  <p>Could you allow them?</p>\r\n  <form method=\"post\" action=\"${data.actionPath}\">\r\n    <input type=\"hidden\" name=\"auth_token\" value=\"${data.encryptedAuthToken}\" />\r\n    <input type=\"hidden\" name=\"user_id\" value=\"${data.encryptedUserId}\" />\r\n    <button type=\"submit\" name=\"action\" value=\"allow\">Allow</button>\r\n    <button type=\"submit\" name=\"action\" value=\"deny\">Deny</button>\r\n  </form>\r\n</body>\r\n</html>`;\r\n  }\r\n}\r\n```\r\n\r\nThis library provides the following values to the template for rendering.\r\n\r\n- `providerName: string` - The provider name of the client.\r\n- `scopeString: string` - The scope string devided by space the client code specifies.\r\n- `scopes: Map<string, string>` - The map object which has a set of the scope name and its description.\r\n- `encryptedAuthToken: string` - The encrypted auth token. You need to set this as the hidden parameter.\r\n- `encryptedUserId: string` - The encrypted user ID. You need to set this as the hidden parameter.\r\n\r\nAnd, you need to set the instance to the Configuration class instance as like the following:\r\n\r\n```typescript\r\nimport * as functions from \"firebase-functions\";\r\nimport {\r\n  authorize,\r\n  Configuration,\r\n  googleAccountAuthentication,\r\n  token,\r\n  userinfo,\r\n} from \"@adrianjost/oauth2-firebase\";\r\nimport { MyConsentViewTemplate } from \"./my_consent_view_template\";\r\n\r\nConfiguration.init({\r\n  crypto_auth_token_secret_key_32:\r\n    functions.config().crypto.auth_token_secret_key_32,\r\n  project_api_key: functions.config().project.api_key,\r\n  views_consent_template: new MyConsentViewTemplate(),\r\n});\r\n\r\nexports.token = functions.https.onRequest(token());\r\nexports.authorize = functions.https.onRequest(authorize());\r\nexports.authentication = functions.https.onRequest(\r\n  googleAccountAuthentication()\r\n);\r\nexports.userinfo = functions.https.onRequest(userinfo());\r\n\r\n// ...\r\n```\r\n\r\n## Customize the authentication page design\r\n\r\nSimilar to the consent page, you can customize the authentication page design. To customize the page design, you need to create a new class which implements the `AuthenticationViewTemplate` interface.\r\n\r\n```typescript\r\nimport {\r\n  AuthenticationData,\r\n  AuthenticationViewTemplate,\r\n} from \"@adrianjost/oauth2-firebase/dist/endpoint/views/authentication_view_template\";\r\n\r\nexport class MyAuthenticationViewTemplate\r\n  implements AuthenticationViewTemplate\r\n{\r\n  public provide() {\r\n    return async (data: AuthenticationData): Promise<string> => /*html*/ `...`;\r\n  }\r\n}\r\n```\r\n\r\nYou also need to set the instance to the Configuration class instance as like the following:\r\n\r\n```typescript\r\nimport { Configuration } from \"@adrianjost/oauth2-firebase\";\r\nimport { MyAuthenticationViewTemplate } from \"./my_authentication_view_template\";\r\n\r\nConfiguration.init({\r\n  // ...\r\n  views_authentication_template: new MyAuthenticationViewTemplate(),\r\n});\r\n```\r\n\r\n## Add Your Protected Resource Endpoint\r\n\r\nIn this library, the `userinfo` protected resource endpoint is provided as default. But, you can add your own protected\r\nresource endpoint. Each protected resource receives the request including the access token issued for users/clients,\r\nchecks whether the access token is valid or not against using the protected resource, and actually returns the resources\r\nand/or creates some resource or does something. This library provides a convenience abstract class. You can define your\r\nendpoint by creating a new class which extends the abstract class and implements the following two methods:\r\n\r\n- `validateScope()` - Check whether the passed scopes are valid to call this endpoint.\r\n- `handleRequest()` - The code body to access to target resources.\r\n\r\nTo publish your endpoint on the Cloud Functions, you need to retrieve the endpoint function by the `endpoint` property.\r\nAs the result, your code will be like the following:\r\n\r\n```typescript\r\nimport * as express from \"express\";\r\nimport { AbstractProtectedResourceEndpoint } from \"@adrianjost/oauth2-firebase\";\r\nimport { ProtectedResourceEndpointResponse } from \"oauth2-nodejs\";\r\n\r\nclass FriendsEndpoint extends AbstractProtectedResourceEndpoint {\r\n  protected validateScope(scopes: string[]): boolean {\r\n    return scopes.indexOf(\"frields\") !== -1;\r\n  }\r\n\r\n  protected handleRequest(\r\n    req: express.Request,\r\n    endpointInfo: ProtectedResourceResponse\r\n  ): Promise<string> {\r\n    return new Promise<string>((resolve, reject) => {\r\n      fetchFrields(endpointInfo.userId)\r\n        .then((friends) => {\r\n          resolve(JSON.stringify(friends));\r\n        })\r\n        .catch((e) => {\r\n          reject(e);\r\n        });\r\n    });\r\n  }\r\n}\r\n\r\nexports.friends = functions.https.onRequest(new FriendsEndpoint().endpoint);\r\n```\r\n\r\nIf the passed access token is invalid, the `handleRequest()` function will not be called and returns an error response\r\nby the abstract class.\r\n","readmeFilename":"README.md","contributors":[{"name":"Adrian Jost","url":"https://github.com/adrianjost"},{"name":"Yoichiro Tanaka","email":"yoichiro6642@gmail.com","url":"https://github.com/yoichiro"}]}