{"_id":"@dessly/passport-vk-id","_rev":"3-b5ef511d622422bf667e315e95c33f28","name":"@dessly/passport-vk-id","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@dessly/passport-vk-id","version":"1.0.0","keywords":["passport","vk","vkid","auth","authn","authentication","identity"],"author":{"name":"Dessly"},"license":"MIT","_id":"@dessly/passport-vk-id@1.0.0","maintainers":[{"name":"dessly","email":"dmitry.mahitov@gmail.com"}],"homepage":"https://github.com/knaus94/passport-vk-id#readme","bugs":{"url":"https://github.com/knaus94/passport-vk-id/issues"},"dist":{"shasum":"f127f1a9660b2ea31f47f5eac8c3fa0da43dafef","tarball":"https://registry.npmjs.org/@dessly/passport-vk-id/-/passport-vk-id-1.0.0.tgz","fileCount":7,"integrity":"sha512-f+Zs4PUmPSSMy023xMAjH7SHisfVKGYh07wwx3irsq3gOTLdRIL5JMxCAjy8vhHt/gAP+Gff2OxMRiptIiA0ag==","signatures":[{"sig":"MEYCIQCpDMBY4r2VUL3c5yXqaXVaLiVBYkvOHRlLMAGxyOIbHAIhAJ14uAKlch6l2Kn0CkWzxDm9jDJxh8vBLRypBxHRph6z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15117},"main":"lib/passport-vk-id","engines":{"node":">= 0.10.0"},"gitHead":"679180e4d40c94ce88a8738bb6c2459075fbafdf","typings":"./typings/index.d.ts","_npmUser":{"name":"dessly","email":"dmitry.mahitov@gmail.com"},"repository":{"url":"git://github.com/knaus94/passport-vk-id.git","type":"git"},"_npmVersion":"11.6.2","description":"VK ID authentication strategy for Passport.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"pkginfo":"0.3.x","passport-oauth":"1.0.x"},"_hasShrinkwrap":false,"devDependencies":{"vows":"~0.7.0","@types/passport":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/passport-vk-id_1.0.0_1765837822899_0.8930089395948504","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dessly/passport-vk-id","version":"1.0.1","keywords":["passport","vk","vkid","auth","authn","authentication","identity"],"author":{"name":"Dessly"},"license":"MIT","_id":"@dessly/passport-vk-id@1.0.1","maintainers":[{"name":"dessly","email":"dmitry.mahitov@gmail.com"}],"homepage":"https://github.com/knaus94/passport-vk-id#readme","bugs":{"url":"https://github.com/knaus94/passport-vk-id/issues"},"dist":{"shasum":"bb49328b86e5071e5e831b379c1a0a3b928ab734","tarball":"https://registry.npmjs.org/@dessly/passport-vk-id/-/passport-vk-id-1.0.1.tgz","fileCount":7,"integrity":"sha512-lQh2SlDvGEnDCZVY11E3AYwdcvWOlqz7Yt2AKFZs3duMlAx05jV1PjxNFurnI7D3viqYWk1goH83OgWOFb4X6A==","signatures":[{"sig":"MEYCIQCwN7HoHd2dbjOPDaAvBYOGihk/aqe5MSZGVW46MOcoUgIhAJ9+Mfd4m7o4ivQYl/tiS7budhVO6M75s4qKPC92wwwn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14226},"main":"lib/passport-vk-id","engines":{"node":">= 0.10.0"},"gitHead":"abec460106a7f95feead1c1f274ed9ef2f5e719b","typings":"./typings/index.d.ts","_npmUser":{"name":"dessly","email":"dmitry.mahitov@gmail.com"},"repository":{"url":"git://github.com/knaus94/passport-vk-id.git","type":"git"},"_npmVersion":"11.6.2","description":"VK ID authentication strategy for Passport.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"pkginfo":"0.3.x","passport-oauth":"1.0.x"},"_hasShrinkwrap":false,"devDependencies":{"vows":"~0.7.0","@types/passport":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/passport-vk-id_1.0.1_1765840806405_0.48611782973647966","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dessly/passport-vk-id","version":"1.0.2","description":"VK ID authentication strategy for Passport.","author":{"name":"Dessly"},"repository":{"type":"git","url":"git://github.com/knaus94/passport-vk-id.git"},"main":"lib/passport-vk-id","typings":"./typings/index.d.ts","dependencies":{"pkginfo":"0.3.x","passport-oauth":"1.0.x"},"devDependencies":{"@types/passport":"^1.0.0","vows":"~0.7.0"},"engines":{"node":">= 0.10.0"},"license":"MIT","keywords":["passport","vk","vkid","auth","authn","authentication","identity"],"gitHead":"abec460106a7f95feead1c1f274ed9ef2f5e719b","_id":"@dessly/passport-vk-id@1.0.2","bugs":{"url":"https://github.com/knaus94/passport-vk-id/issues"},"homepage":"https://github.com/knaus94/passport-vk-id#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-DsSQbR1KQNy17rejbDdKwgAgjqQs0nTn1T8PtFIOGQz3JnIeInGfuI0Wv9jFFY3+pjk1EEDqngX41bcDhfFz0Q==","shasum":"ee9db59000993f9a183e72eed7b75b022c42695b","tarball":"https://registry.npmjs.org/@dessly/passport-vk-id/-/passport-vk-id-1.0.2.tgz","fileCount":7,"unpackedSize":14004,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCMP0QK155h+yIwFa1bN1JD7D81rbbz3bxgGYAEOlNLHwIhAPoza1W1Uy/3Nis7jmNdbxhwIUefvNM6HGh6URC6jepE"}]},"_npmUser":{"name":"dessly","email":"dmitry.mahitov@gmail.com"},"directories":{},"maintainers":[{"name":"dessly","email":"dmitry.mahitov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/passport-vk-id_1.0.2_1765900249146_0.978971144400907"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-15T22:30:22.835Z","modified":"2025-12-16T15:50:49.474Z","1.0.0":"2025-12-15T22:30:23.048Z","1.0.1":"2025-12-15T23:20:06.545Z","1.0.2":"2025-12-16T15:50:49.286Z"},"bugs":{"url":"https://github.com/knaus94/passport-vk-id/issues"},"author":{"name":"Dessly"},"license":"MIT","homepage":"https://github.com/knaus94/passport-vk-id#readme","keywords":["passport","vk","vkid","auth","authn","authentication","identity"],"repository":{"type":"git","url":"git://github.com/knaus94/passport-vk-id.git"},"description":"VK ID authentication strategy for Passport.","maintainers":[{"name":"dessly","email":"dmitry.mahitov@gmail.com"}],"readme":"# Passport-VK-ID\n\n[Passport](http://passportjs.org/) strategy for authenticating with [VK ID](https://id.vk.ru/about/business/go/docs/ru/vkid/latest/methods)\nusing the OAuth 2.0 API.\n\n## Installation\n\n    $ npm install passport-vk-id\n\n## Usage\n\n#### Configure Strategy\n\nThe VK ID authentication strategy authenticates users using a VK/Mail.ru/OK.ru\naccount and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a client ID, client secret, and callback URL.\n\n    passport.use(new VKStrategy({\n        clientID: VK_APP_CLIENT_ID,\n        clientSecret: VK_APP_CLIENT_SECRET,\n        callbackURL: \"http://127.0.0.1:3000/auth/vk/callback\"\n        scope: [\"vkid.personal_info\", \"email\"], // optional\n        provider: \"vkid\", // optional (values: \"vkid\", \"mail_ru\", \"ok_ru\") \n        lang_id: 1,\n        scheme: \"light\"\n      },\n      function(accessToken, refreshToken, profile, done) {\n        User.findOrCreate({ id: profile.user_id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'vk-id'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n    app.get('/auth/vk',\n      passport.authenticate('vk-id'),\n      function(req, res){\n        // The request will be redirected to VK ID for authentication, so\n        // this function will not be called.\n      });\n\n    app.get('/auth/vk/callback', \n      passport.authenticate('vk-id', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n\n## Credits\n\n  - [knaus94](http://github.com/knaus94)\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2024\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md"}