{"_id":"@aestheticbookshelf/oauth","_rev":"6-b8f4a6d0ae5f89d6897ab6b54d6910d2","name":"@aestheticbookshelf/oauth","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.1":{"name":"@aestheticbookshelf/oauth","version":"1.0.1","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"7426716f52f362d1f0b009a2a7f27ca26f037748","_id":"@aestheticbookshelf/oauth@1.0.1","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-OgkMVFAL2xwu7ajQonwOwYzDhmxBA+dFrkLHs8Z9lw3ql36zEv9kHAZ98rTiGVe6WH0o78ZQWWpstaxCRY0TwQ==","shasum":"0503bc87246fb9fe9ee872ecce57693a5e70a4c9","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.1.tgz","fileCount":9,"unpackedSize":4756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeURzWCRA9TVsSAnZWagAAMk8QAJSYq1Lt8awMJB6FV/yM\norRTmteXyEwBip+2S1cryIss2++VyCLFhEi8apgMioK649EavmVXwh7lrE/L\nBy9qn4UWuG85+VRc5TSr5vKXe36wkRUZrsBfw7jgPlILSqaRulm36qGgRB3H\nGG1zQ4DouQMLfZkJoWoCuegdOYWkQgagSWVOZ3JCjSqUdlEOTG+mdjd2Hvyj\nWTbhGqYkN9oWqI2E7Gn/hv2QEwe8EIBs+EcCJusw7Jxa+PJbn92Fl6gGY795\nzmJWMKoV4ykHf19AZXYWYu5mIOP5AMtNbYUegp0b1LYIqQNs5DFZMMNsk9iI\nUWfK9WuIFUFMjVR8bzRPsDvlfU7cGOExC7Ieg7RDCIVVHy/t8yIiQRzJJ9Hm\nPMnew7HKY+dTngkPuMiB4L0KJfTDE5Sr2+LdiYRqT4eOqJWAZZ61dehj+j+4\n3ks9Rfmr8s+ZFvZtCa0bwNdrPJYn0qgIiPabhgWLs3eDn6mfZciYsF7hJ3Lt\nPRpVAjMwlmyOpueBJCRVCJI/ZnHhlAVgIuUQPfkR7TQ7Kx4/D1Olce33QfK+\nvVJO1aCqCteov7PR1Ni6IXf1B5uIVK2bC0jOu/XTQDIYR4+e5PMFeo8hLuJG\nBpi0incq74HvglSLS785FpjqYzUUwWCzfqXfzFJpLJ3lQyhMiGID6TwxJadg\nHkoi\r\n=JzIu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzIoErtha2WgYWkUo1CoAdivbrZPumXaardgOagZA1mQIhAJlgOnbbb7uF9A2WF38JtLa9NiUJrAhYgcccW0INm4lP"}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.1_1582374101810_0.9411283722300952"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aestheticbookshelf/oauth","version":"1.0.2","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"b2cc83f4bddc1369242ab8b6804bd8d7d7b55c29","_id":"@aestheticbookshelf/oauth@1.0.2","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-jBDNxnHihyHz3G5S1/SPveTwL1yMec1eQt+tMaw5VPsfLem62gnyhiARfzz/d0I3jDKv/RZw2om1rXL2cbP1EA==","shasum":"3c27e374ecf3802e1a8eabefdabeae5704b393b8","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.2.tgz","fileCount":9,"unpackedSize":6826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUwNSCRA9TVsSAnZWagAAr/oP+QC6qAtMaj3NcszDUJiz\nxNzQsuf/6WBxF4TOh/qojhXuTSy5MWpFrVkIG9usufOgcAKyYneS+paqk+kb\nLN9FwL/vLnfNGrbtyJkgnqjeAWPEKu0vKTWTUYNWC41BNGlBHkHoSnCleIjS\nLuev6NeZaoQxIz6K4Dn9Vasb+S271nwN6DCSg2O4IValdrw00AGv5Nbm+qDx\nltbx0SZVIwkuO+P9VGS7I7E/2vKOdOkFO1n+emxL0oujboFV7S5t2Hc8OznF\n+Zzizuts1gzopu/GxnrNtvpMMJDGNOkqCz2AqKLyj0j8/5cOrV0sciLqx1bQ\n1QEhYhCt2h58/gUE9iHreu4oHIXZeF+MMLNYuPi0fCd01ORpy++9MRYbvvFW\nNhG/0izjaEewd0/jAa46RH5Y/IkciwIdgO1UUqA9w+LBS3zOXEAcHCsmckvZ\nV+uLhiubhWiL8blX5U94kUWVenLFrrA7xuZbQ280iC4CWiKTk3tH/h2NM/VM\nPh9llRRcpUZxnMR5QNJHLOJ/pYDJ++mODSXjczTIN8Ug4780DHmTaMlSh3e6\n2sXK5dDBUvojT+cGp+xBRNstgATfAKffizl5ys0YgwJeGFFRpRzJfe9uBzwi\nz1uGYS8mqcFqrDGFJRPv96jQ7OwCG8jZOaRcYFwBN7JvYuLaUxYbXXSqbKl+\ntNNa\r\n=QbG4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEq5+Bq8jw/9Leb0ml3L3lg6lBafUEktLr8lc+D8FKIdAiEA+OvWyMnBl0UOVuJPV0a7tl0A7SHY7TpW8KaFItznZ4M="}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.2_1582498642118_0.076828112243996"},"_hasShrinkwrap":false},"1.0.3":{"name":"@aestheticbookshelf/oauth","version":"1.0.3","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"cf4390575cf729b790fbb20a1653a8141f25381a","_id":"@aestheticbookshelf/oauth@1.0.3","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-kHQuRsmmztlVb+u7vRQGVxBObti67XXjuTK1hDOQpi5VBwtMjqR3EKs+XSRQhufn91mbQ1EmSEpGQNmPGNLwKQ==","shasum":"5dd7d7bc93fdf33f2ab4a9e1e2e0071e446ceccc","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.3.tgz","fileCount":9,"unpackedSize":6979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUwUtCRA9TVsSAnZWagAAUcwP/2B3FuvnDQ69RilL3wVV\nLORocwQBFcI47hWCN8p/7pPc6YqgIGHTcLx50UIjOQJG9LGSsiEa/6mjD9uc\ndpLaOhfstapM7B37XVFIiQwIZzDDdCROlvtMvEVzyEsaDibhGsco0DMue8Bl\nSh+cv7lJrjQ19uaQcXaQTqgVYUSMQLJDJScppie/ajMaSyC+ecDsnUVdMfd8\naZAX50Bdo/HFBov2UXWw8lXvQov8NUVCCL8XV4ESf6XJS0Jbe2eq7y3x9mIb\nXRD840iGxbPCJ0Kyr90GpOLA30Vr8xKbw+Lb079MTD5wV5awsHdI0Ss1kksQ\nMg19LmDcfkYnn0qhw0hMAze9SYbbF+7uef6PwbSgnVekynj0STlNta6NCa/H\nubuy5DFfuPe7g8xSSarmgQkj0Bl6xqmddE5Mu1DIXpDvGs5lpwq6uM05zYre\n5fSaAlrUY5W+V9ppehtZvcf9B6zQBfzntKs41jJYQZmWNxuKHfCRxb27G77g\nFjFBPZAEStnfxF+crCwu/wZzdq6VRYGGJPLXQDoWR7fSGcoSadmcY0u42Bdj\nPnqfhoywqfjYbu6SZ4Bar4G/E9HcjB/eK8e7WknMoOvhWHDvg5tLDNORYL75\n1OyqTsKsY1UfCQ3o0eu0g+aSoeAnGr0GL4StfQQfzPMjRMrYDv+hZgvGrVrv\nMf8u\r\n=xIHC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBK4WRdhJrze+6y8p00JWXk09mIu/nQcaRCmOpktgbrLAiApQrNafISYjb6zgKdznf1IMIjyqrorqt+ffYMl1QTm1g=="}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.3_1582499117272_0.5751665400153148"},"_hasShrinkwrap":false},"1.0.4":{"name":"@aestheticbookshelf/oauth","version":"1.0.4","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"fa94d9b16751046710872480db45057250ea7598","_id":"@aestheticbookshelf/oauth@1.0.4","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-LFYgpnLj3DJmU1fPGxDby0HnTwr5SQf62vI/77KZS9BCLUfjLw92+33JUy8+deFq00eWdEFsuRs7PFCmfbUgxw==","shasum":"d4ac1640fc0423575e3c5b8308abb9b9213e41ca","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.4.tgz","fileCount":9,"unpackedSize":6985,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUwYvCRA9TVsSAnZWagAA2FcQAIsUGlzsI5dzDlwGUrea\nqxwgIw8CKtkNqLbDKNii9LDFTGpfKqH1PSOnwU//SZtuq7msfxc7t1KMnih5\n39aOOrlNquXHITjsF0ONAv9EOI3Hzd022d1QyDez6Cr7hyeBOhuXWooCPUDQ\nFvA7Wp4wWxGRS8TDu3947LP3sbYrHBdZq1LDCZNADBNrt4gGBMr7mXS4U+5g\nHLs2j/LeTgRj5pVx9Wmu/sFFtN1RSSNM96oxQmHeTnfFTFlazzq3LBtdBvwb\nCTN67RB1NklUY2Gk5g7sizdxaq772x9Mix6M8YFC42qh5nHNcqroGXOUji0D\nJxcy+WYdbxAuFnvqry5OtVOp4SRiN6wg0LCj8tR8/3I/mump94ljPNfIS0pW\ntwPMAKleUf2kb/2BBW4RRGc2KjQrzIHF/FCJp7I5x7AlnsBEykhSYGDg7rst\n660qauq0bbz+8DpDw/d51bk8ieLEae9XqOuAzLxbWWWTAr15v4L88NZv9vUJ\nXGJOcQo3DTr/rrdc4WV1Kl8kYDEJwj3xLrLGg1wCRxbXrhGjeAaGF6AeliYo\npLDhp7SbXMzh9doa+VrrSMc8ddeahxxKDnoDQRs+KaXThsyL3R5nq1yoXKGl\nn/11wZH4b+UBDb9sYUNYWG7HSPu/v9tcYToeFb0jIbAZFP31HZy9SFYhjoii\nQ01x\r\n=6bEK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLXARvAgcYKr/O5oUkN9PMUHlYkFBVnfQ0aTfRFeNMyAiAtIu4NfYyE6R0cx9E15qo1Jpc7/xm5NDCV9fIycEBWtg=="}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.4_1582499374888_0.45189452349675774"},"_hasShrinkwrap":false},"1.0.5":{"name":"@aestheticbookshelf/oauth","version":"1.0.5","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"e8bea6ba5c3b7b512e61fb47db41602861d02ae8","_id":"@aestheticbookshelf/oauth@1.0.5","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-NIM6BaetTLQc4juFb1ayT3YKqd7fFvifXdn8jlD4th1ifcaPkxj/Nd5vWH7fhVPj0SweySQwfQG6u1Ye4cnDpA==","shasum":"0beca71815f451e47114cf686adf02431f2b9d79","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.5.tgz","fileCount":9,"unpackedSize":7256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUwe6CRA9TVsSAnZWagAANeQP+gM6wEL/mCddP83HLczn\nSKFXvEFZ/ToK5AJYhONtrH+/PgRvp6Y9TMWpJndMbkZBmro744javiBXhHQo\nXJ0gLmb2gbgpgYAVTy7a9VnwkXQSf4+4zk6ezu2U0NV80UPWe9VY2SXhKj/v\nxWcPkYkgZK8IPK3Dcb8lKGScvRTljrA/f0GAmIUY5u5IG88xz912M/F6O+hO\n2hcn+jYdNY33ngXD7SO0fm8E3fdVzIpuCspvoc0LXZUhuRZHcliO6Lr0UBQU\n0uou0ZNdJFyPoVTVfJxmWg12y9ueNsOc/v5nQlTwWevHaXhZMlPsTTBk0IrT\nN+SUtbUDZGFA+Tja55tlx/mo7BiOO9hMat4bKQiBQIMdYAuG3XCDYO2LAxOZ\ny1WsevFnEjQnRneLG2svg8z8a12sAfcFlhlKFLqcfyQYERmF0mu++U/bjXDv\nAjNeYT0ykeNTQxY+L9v/ekqP2MJKwKoS6yqZaJaE9PAFFuIWRcqbLi1Y9oBG\nYRfydTecwgUz97HDf+zuLRlkaZiMLQsTHWYdfMgeebzZdtfLyM9F3QphZvhp\nFQhCrlFsLzcfEgJW2BfrfCEBo99hidx9LnmLAcCvOSvDBiKM4G50sB82TaIx\nm1ylXRGcqr4h6ckM55o58aXynRO8N14y/OvTiq04y93mQwQQBe5bru1k3P+W\nUwIy\r\n=eBTz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfsEBfSFynyHCPcmnYvKVjButzfhzFlA2VqRgYYyh7+QIhAOi27Qra7suR1v7hxB/T/N1skcSAkQPRg0Q1dZtVG+Bs"}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.5_1582499770411_0.4057522897453867"},"_hasShrinkwrap":false},"1.0.6":{"name":"@aestheticbookshelf/oauth","version":"1.0.6","description":"Oauth.","main":"lib/oauth.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["oauth"],"author":{"name":"aestheticbookshelf"},"license":"MIT","homepage":"https://github.com/aestheticbookshelf/oauth","bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"dependencies":{"body-parser":"^1.19.0","connect-ensure-login":"^0.1.1","cookie-parser":"^1.4.4","express-session":"^1.17.0","firestore-store":"^2.0.1","passport":"^0.4.1","passport-lichess":"^1.1.0"},"gitHead":"c12d2122594da2f571e007b238c1f9747a719922","_id":"@aestheticbookshelf/oauth@1.0.6","_nodeVersion":"8.9.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-XHhGNQLRA6SwjcWYOrAtcDj8jEFFpTso+IR6ZYHkO9WuH/MkyOsJkAYoAbGz0F/8cZ93WC1s/l9CAXMjyZrB6A==","shasum":"866d4bf2d3e15b1683664bf03470a5865796372b","tarball":"https://registry.npmjs.org/@aestheticbookshelf/oauth/-/oauth-1.0.6.tgz","fileCount":9,"unpackedSize":7556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUwmWCRA9TVsSAnZWagAAQJsQAIZ4KnoNBiplWxPg+qbV\nemyr28M0HBAtz9jlTYfUFwoVvZnh+rtqSWwX6t65L2C0RIsI0iCyGrUoXwP/\nY25wemuBqCDIbfEJiD7aY0duiK+1VKBWYx/nXpiiA5g6eXiNOxcchVYx1EEX\n/EB8sOvjJFaE17UNB1uJD2mZrMpcFv4jyh7yvQNCiTDFd71FXWSvxBrXW+h4\nmMZBumF5mWapEwQiRP1lHJGfNGwL69fyH6HwmPNy9B11nE9OoUjlfKkk5+IX\ndwukPVeBV6MngKosbI7UocAUqmfVxhm0rXazr8XR5s/PjnJiM9SdUv/Z6CbS\nAOpd2RQkhldxb9O7dOarEO/tw3zIcCosB9Nd5f4EY4ajRPmj7KnUUJCBV44d\nKMk+Wsq7sL4UgHDwKryXVSNk6k4g17hT54ixed2BnOj6tEqvm/BF/UbFJizS\nKJzNbhm3i1NYtwISZuEJ7y0cjcUkfkBsdKDKwD+U7VvytZ3TH+GgtHEGmfAf\nmnfnqm9B7V0ILdpjBMAaJPgw+UuvKMtHtDa16qdMWZbuN2O0Ee2Pz1FKK1wK\nfZuFrG0bKsy470dKF+lEpnN3Lr9uBEP5exp+zxzMVWG5UCl7lP1u1O8YMIiU\n3I2ypQAPtEM1cO+wN2ZaDAmlXWXtCV1Ha2UB17jbkM8npeU4Z6EUv32m292S\n2EBZ\r\n=w1Yf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRzP/k5nQWYKjlZzaO/xfilcMIg4zHR3tXBtVVN2IGVwIgB/nLetvCubt3yMO5ARGJXoGK4eIqSir35nVV+IIoyfA="}]},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"_npmUser":{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oauth_1.0.6_1582500246032_0.08962101130790123"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-22T12:21:41.777Z","1.0.1":"2020-02-22T12:21:41.938Z","modified":"2022-04-04T11:49:46.159Z","1.0.2":"2020-02-23T22:57:22.246Z","1.0.3":"2020-02-23T23:05:17.393Z","1.0.4":"2020-02-23T23:09:35.064Z","1.0.5":"2020-02-23T23:16:10.525Z","1.0.6":"2020-02-23T23:24:06.301Z"},"maintainers":[{"name":"aestheticbookshelf","email":"aestheticbookshelf@gmail.com"}],"description":"Oauth.","homepage":"https://github.com/aestheticbookshelf/oauth","keywords":["oauth"],"repository":{"type":"git","url":"git+https://github.com/aestheticbookshelf/oauth.git"},"author":{"name":"aestheticbookshelf"},"bugs":{"url":"https://github.com/aestheticbookshelf/oauth/issues","email":"aestheticbookshelf@gmail.com"},"license":"MIT","readme":"# oauth\n\nThis module lets you add `oauth` to your `express` server in a simple way. Currently the only supported `strategy` is `lichess`.\n\n## Synopsis\n\n```javascript\nconst oauth = require('@aestheticbookshelf/oauth')\n\nconst firestore = null // provide firestore instance for persistance\n\nconst maxAge = 31 * 24 * 60 * 60 * 1000 // cookie max age in ms, optional, default is 1 year\n\noauth.initOauth(app, firestore, maxAge)\n\noauth.addLichessStrategy(app, {\n    tag: \"lichess-common\",\n    clientID: process.env.LICHESS_CLIENT_ID,\n    clientSecret: process.env.LICHESS_CLIENT_SECRET,\n    authURL: \"/auth/lichess\",\n    failureRedirect: \"/?lichesslogin=failed\",\n    okRedirect: \"/?lichesslogin=ok\"\n})\n\noauth.addLichessStrategy(app, {\n    tag: \"lichess-bot\",\n    clientID: process.env.LICHESS_BOT_CLIENT_ID,\n    clientSecret: process.env.LICHESS_BOT_CLIENT_SECRET,\n    authURL: \"/auth/lichess/bot\",\n    scope: \"challenge:read challenge:write bot:play\",\n    failureRedirect: \"/?lichessbotlogin=failed\",\n    okRedirect: \"/?lichessbotlogin=ok\"\n})\n```\n\n### User\n\nIf you execute the above code in your `express` server, then after visiting the `authURL` on your server ( which takes you to the `oauth` server of the third party ) and approving the `oauth` form, all your `express` requests will have a lichess user that you can access with `req.user` ( or null if not authorized ). The `access token` is available as `req.user.accessToken`.\n\n### Scope\n\nYou can pass an optional `scope` string, which should hold a space separated list of the scopes you request.\n\n### Persistance\n\nFor making your login persistent you can pass an optional `firestore` instance to `initOauth`. If `null` is passed, an in memory store will be used.\n\n### Registering app\n\nOf course first you have to register your `oauth` app with the `oauth` provider ( see also [register lichess oauth app](https://lichess.org/account/oauth/app) ) and have the necessary environment variables set with `CLIENT_ID` and `CLIENT_SECRET`.\n\n### Urls\n\nIf your `authUrl` passed to the `oauth` module was `/auth/lichess` and your server's host is `myawesomeserver.com`, then you have to register a lichess `oauth` app with `https://myawesomeserver.com/auth/lichess` for homepage `url` and `https://myawesomeserver.com/auth/lichess/callback` for callback `url`.\n\n### Host\n\nYou have to specify your server's host in `env` variable `SITE_HOST`. If this is not defined, then a development server is assumed with host `localhost:3000`. For the development server you need to register a separate `oauth` app, where you have `http://localhost:3000/auth/lichess` for homepage `url` and `http://localhost:3000/auth/lichess/callback` for callback `url` ( or alternatively you can define `SITE_HOST` in development too, eg. `SITE_HOST=localhost:8080` ).\n","readmeFilename":"ReadMe.md"}