{"_id":"@dynastic-accounts/provider","_rev":"5-a89fbd4460f7a295d2847ea82451057b","name":"@dynastic-accounts/provider","dist-tags":{"latest":"2.1.0"},"versions":{"2.0.0":{"name":"@dynastic-accounts/provider","version":"2.0.0","description":"A Passport OAuth2 strategy for easily authenticating users with Dynastic Accounts.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc"},"repository":{"type":"git","url":"git+ssh://git@github.com/dynastic/accounts-provider.git"},"author":{"name":"Dynastic","email":"hello@dynastic.co"},"license":"MIT","dependencies":{"@dynastic-accounts/core":"^2.0.0","passport-oauth2":"^1.5.0"},"devDependencies":{"@types/passport-oauth2":"^1.4.8","typescript":"^2.5.3"},"gitHead":"9511e13bb7be7b617bad2db0e4d3ec486ec0e035","bugs":{"url":"https://github.com/dynastic/accounts-provider/issues"},"homepage":"https://github.com/dynastic/accounts-provider#readme","_id":"@dynastic-accounts/provider@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"aydenp","email":"npm@ayden.dev"},"dist":{"integrity":"sha512-00S85tC6wxzePdMrAykg05Vd/+OuEmNc2iT6kLK6zr9oIBr9RKYkGarv4USswd1Cuf8Khg2I+0JfI3RscEbrzw==","shasum":"d21be9b3b0c913a91b1f5f401acfe93426a4c24f","tarball":"https://registry.npmjs.org/@dynastic-accounts/provider/-/provider-2.0.0.tgz","fileCount":10,"unpackedSize":12403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdv7AdCRA9TVsSAnZWagAAXp0P/3ggVK1prvyGptauH8LY\norbk80SKn6UDZYd5bfo5zEpErHFXcEMORT9smAlqgqG9iCtHoA34HlakvQdZ\nENXYh8S2ph5h/pYskJi5l1cW42QTfZQMrCxQ52U5WNJiNlPdSN34vkX8Jijz\n93NVmEG4RD0xrtEgSyn6+LUngboUDOFL+FewYQxHYRWcY3Vild+QSCFTzLy4\nU2qwzbcyyR40wioMgdL4zYtBvO2xEvguqrtjtRTkEbiqWTfoly67uXHqChjy\nEVQNkg0YZjeiYlkvsrqETWQaYVJWeGk61iEjzQ2Xi/LcJ7XGRvPXKpNXabPS\nTo63JdPa/s0kUsWtGrz3iJSec9LHrIdmooErvfRHlvSKfr7etjtuaLKjZpzF\noDMclcM2EoDr91oQHLNRGecy3YYVzhfvPSQEHYe3DIts4jr0jyqCGzNRGGgQ\n5APIuY4zKo5a8fi0+HLS/yKo0dOesSfgDDgZt1lQ5j+fxy706+Ap+i093/Ww\nt3/AOXwX0wWubZ6ESI0RXf14/nh01bXggDvtPM4zYZTW45CjOoHQbHadhaTS\njiDqs6ub5CjQpy0xgn28d7Y02iC3JRDiadNDV9CRWT7wIazvMVxtVOfcy3BU\nVp0U6xQ+bcPOo734IXKDazKlV9XjcAmzUybAMr9FvUiCl9QRbLf4lxvesGi6\nVsM7\r\n=nuE0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTz1VIFJ9A1e+pMzsQwrEQDSTkMbiXnXVu1Maf6a6mjwIhAKyh/CZSGzW56J4bbBl7dAMwFxgDFo+SGcH7VVdiYRyr"}]},"maintainers":[{"name":"aydenp","email":"npm@ayden.dev"},{"name":"applebetas","email":"applebetas@dynastic.co"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_2.0.0_1572843549324_0.04182596173661679"},"_hasShrinkwrap":false},"2.0.1":{"name":"@dynastic-accounts/provider","version":"2.0.1","description":"A Passport OAuth2 strategy for easily authenticating users with Dynastic Accounts.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc"},"repository":{"type":"git","url":"git+ssh://git@github.com/dynastic/accounts-provider.git"},"author":{"name":"Dynastic","email":"hello@dynastic.co"},"license":"MIT","dependencies":{"@dynastic-accounts/core":"^2.0.2","passport-oauth2":"^1.5.0"},"devDependencies":{"@types/passport-oauth2":"^1.4.8","typescript":"^2.5.3"},"gitHead":"a590b431784f3e15a07fc6f8a17719eea51ac09e","bugs":{"url":"https://github.com/dynastic/accounts-provider/issues"},"homepage":"https://github.com/dynastic/accounts-provider#readme","_id":"@dynastic-accounts/provider@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"8.16.0","_npmUser":{"name":"aydenp","email":"npm@ayden.dev"},"dist":{"integrity":"sha512-JY/urAw7spWMU8djmiJgbWfzW/sYory8OWymCe/84LYhpNjw/UGXELzHdtWsvSx7TVQF/XiLpD3i7D/MZyP6gA==","shasum":"6c865da77759062c003b1c171901de7c01814ade","tarball":"https://registry.npmjs.org/@dynastic-accounts/provider/-/provider-2.0.1.tgz","fileCount":10,"unpackedSize":12403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwGyPCRA9TVsSAnZWagAA2SkQAJ5vmFNdNdLVz8pw8ZNp\nViQ2b+Yil4MoY9haq0a+10wCT+7wcyfe1MThTH6oiyajzm7cJ0LsFsPpmS4Q\nbmLCpu0tfd7GM3qyLt8cQ8Y7BkbVihCUehDR17VFwVe1mjwg/qTWPGrrIxNB\nx+z3hgfcqpSVA2tdQW6b1cj517W/L0WhwpezBIP04/Yr6O6rAJHXw8zGk992\nE+P9RhLTp0v+YaBxCAsL+aa/Ejd3pDewh2PWx/udfHfmc7HOpmFhGUqsSaJa\njGUmH7UFbcgEWkfuw7wimw083thIwmWsyAn2ACbKvqchJpzFLj0neiArOCuq\n9s9lh3dxQ5YOrVngu7WGfq47Vtnae3Shr7Nu7eBJPcG6WMCqOR/WH1OFYwCu\nPLbxIKFp9MiZiWagP9WPOzOY5XYuoaX2LiRJAcJsWDv2qFX9USkD70pZTMTD\n0MuHNDApF0G1oZNSKnDXIDZYtn2Swsp0Mya9kKAkCOzuG7sH15YB+xK14ROe\nlvUUw3jag1R7NVMwE3zsn5+hNSRB1XIyWjvcYW0iwkssuRNlKRxzUlCs3Tzo\niAXlCNhkeTlVhynp5KY4XWfMASehyXUiTjKZScFjLKfd52zEOGEvPF3+9m2S\nejofaLGWl0MHTzERuIHT0sN5x9PNObOud6uYnb01R7wFZyxkisffNKD7Cmmh\nJFEq\r\n=CP57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBh2gkvnTGvjcLcitQVTLC4wZceCNhQffBC+bwFFQmh9AiAVQK030MkZJl1eeyWbpsq2CAFCtVxb1oxBJ41TYKEs1w=="}]},"maintainers":[{"name":"applebetas","email":"applebetas@dynastic.co"},{"name":"aydenp","email":"npm@ayden.dev"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_2.0.1_1572891790761_0.28774454682347206"},"_hasShrinkwrap":false},"2.1.0":{"name":"@dynastic-accounts/provider","version":"2.1.0","description":"A Passport OAuth2 strategy for easily authenticating users with Dynastic Accounts.","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf dist && tsc"},"repository":{"type":"git","url":"git+ssh://git@github.com/dynastic/accounts-provider.git"},"author":{"name":"Dynastic","email":"hello@dynastic.co"},"license":"MIT","dependencies":{"@dynastic-accounts/core":"^2.1.0","passport-oauth2":"^1.5.0"},"devDependencies":{"@types/passport-oauth2":"^1.4.8","typescript":"^2.5.3"},"gitHead":"457666437199bcf6a448fa91abc843ad79ba9e28","bugs":{"url":"https://github.com/dynastic/accounts-provider/issues"},"homepage":"https://github.com/dynastic/accounts-provider#readme","_id":"@dynastic-accounts/provider@2.1.0","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-8QlriBtpmWOWY0Hyb3RximO5MZZt3HnxwHRQTWLPZg2i2GTETSPQeIgDEFG5A8UFWEu8BPHa5AqbIRmrDdqibQ==","shasum":"76dd6db8160c9588f36e107b9ece2e280a5a10a4","tarball":"https://registry.npmjs.org/@dynastic-accounts/provider/-/provider-2.1.0.tgz","fileCount":10,"unpackedSize":12570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjKn6CRA9TVsSAnZWagAA51AP/iPFa6zAS7iDE43kSm/y\n/b56TVaqfo00lToJyVOKaO4ADVfi/RBKs3mgShHfD8bE37s8kDns93RgWCYZ\nmRKNC35Qjm7WKwSbaicwYfzwgNnEnMoi0PaaLaZkveMcdHcWoymCs0+VxynF\nTftAR9LnQUyFRwJrwok7xArMIZ4SsHRkFXGiDZP1Re0QZ5dAhuuO11bVgnNp\nOJcnFu0K3qASaJrKS5AzjQyn/J5PVyn+H4DyPZi86c8KBov0BQt3GAAp0fjv\n34lyPvm6ZnyXw4EPQA+Ogxz15KxyVDcbmUCyRZX/v4CM4Nk0B9qDLE+1Rn60\nPnY5tbWjqdJaZLIWukt63f3vjoo8iI3dtHQn1SPyN+CvN8Zt8zJ+Rfd9Rkhj\nqsHwpDIsGJl9HA32Puzu9Jz5THCGEFmrjVBrVVLfPI870md2k7A9pvjCfBWe\nlo1vnhAyyuwYRxzMDFQ96oePw81qI4n2SnPZmlTGOBz8ebGT5bhGQ/Wu4hTq\nDwbbVwUcYsbTdIRiVGHBmiN4n6TY+CHk0nxI4OS153DsFSh2X7Qpjh+oBaZA\nRFNyh3pLkga6H0ZKmBBVi3rdGzXrFMDLBZNOduIGVTREvcy38CNIeM/LQzP4\n2ZdLAOoKQw1bbdO05gdSTiy0wpApki3e9zKHaGS/HamViRtABBhgHwVEV93B\nGz4I\r\n=XUwc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaaODMNtydj/Ye2ak7sFdpHBHd9B8Nur1ULyaL8752OAIhAJHN6VM83auVIZaJjaPyuAPudPlr096wQnAztZ7q4miH"}]},"maintainers":[{"name":"nullpixel","email":"apps@nullpixel.uk"},{"name":"aydenp","email":"npm@ayden.dev"}],"_npmUser":{"name":"aydenp","email":"npm@ayden.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/provider_2.1.0_1603054073808_0.618000429032014"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-04T04:59:09.098Z","2.0.0":"2019-11-04T04:59:09.480Z","modified":"2022-04-05T06:18:35.051Z","2.0.1":"2019-11-04T18:23:10.904Z","2.1.0":"2020-10-18T20:47:53.951Z"},"maintainers":[{"name":"nullpixel","email":"apps@nullpixel.uk"},{"name":"aydenp","email":"npm@ayden.dev"}],"description":"A Passport OAuth2 strategy for easily authenticating users with Dynastic Accounts.","homepage":"https://github.com/dynastic/accounts-provider#readme","repository":{"type":"git","url":"git+ssh://git@github.com/dynastic/accounts-provider.git"},"author":{"name":"Dynastic","email":"hello@dynastic.co"},"bugs":{"url":"https://github.com/dynastic/accounts-provider/issues"},"license":"MIT","readme":"# `@dynastic-accounts/provider`\n\nA Passport OAuth2 strategy for easily authenticating users with Dynastic Accounts.\n\n## Installation\n\n* `npm install --save @dynastic-accounts/provider`\n* It's that simple!\n\n## Example usage\n\n### Authorization\n\n```js\npassport.use(new DynasticStrategy({\n        clientID: \"123-456-789\",\n        clientSecret: \"shhh-its-a-secret\",\n        scopes: [\"user\"],\n        callbackURL: \"https://www.example.net/auth/dynastic/callback\",\n        firstParty: true // Skip consent\n    },\n    (accessToken, refreshToken, profile, cb) => {\n        User.findOrCreate(..., (err, user) => {\n            cb(err, user);\n        });\n    }\n));\n\nrouter.get('/dynastic', passport.authenticate(\"dynastic\", { state: \"auth\" }));\nrouter.get(\"/dynastic/callback\", passport.authenticate(\"dynastic\", { failureRedirect: \"/auth-fail\" }));\n ```\n\n #### Advanced Options\n\n * Set `options.apiBaseURL` and  `options.frontendBaseURL` to control which servers the requests are made against.\n * To completely change the URL, set `options.authorizationURL` and `options.tokenURL` when creating the strategy.\n","readmeFilename":"README.md"}