# passport-vk

> VK.com authentication strategy for Passport.

Latest version **1.0.0** (published 2020-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install passport-vk
pnpm add passport-vk
yarn add passport-vk
bun add passport-vk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-10-07 |
| First published | 2020-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 2 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nikita Olizarenko |
| Maintainers | dev_boy |
| Keywords | passport, vkontakte, vk, вконтакте, auth, authn, authentication, identity |

## Links

- npm: https://www.npmjs.com/package/passport-vk
- Repository: https://github.com/ncodeman/passport-vk
- Homepage: https://github.com/ncodeman/passport-vk#readme
- Issues: https://github.com/ncodeman/passport-vk/issues
- npm.io page: https://npm.io/package/passport-vk

## Dependencies (2)

- [pkginfo](https://npm.io/package/pkginfo.md) ^0.4.0
- [passport-oauth2](https://npm.io/package/passport-oauth2.md) ^1.3.0

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-10-07

## README

# Passport-VK is updated lib with pasReqToCallback

## Installation

    $ npm install passport-vk

## Usage

#### Configure Strategy

Everything is the same as in passport-vkontakte, but allowed passReqToCallback

```javascript
passport.use(new VKontakteStrategy(
  {
    clientID:     VKONTAKTE_APP_ID,
    clientSecret: VKONTAKTE_APP_SECRET,
    callbackURL:  "http://localhost:3000/auth/vkontakte/callback",
    passReqToCallback: true // is optional, by default false
  },
  function myVerifyCallbackFn(req, accessToken, refreshToken, params, profile, done) {
  // Here you can use your request
  }
));
```

---
_Source: https://npm.io/package/passport-vk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
