# @types/passport-vkontakte

> TypeScript definitions for passport-vkontakte

Latest version **1.3.6** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/passport-vkontakte
pnpm add @types/passport-vkontakte
yarn add @types/passport-vkontakte
bun add @types/passport-vkontakte
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.3.6 |
| Published | 2025-10-24 |
| First published | 2018-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/passport-vkontakte
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-vkontakte
- npm.io page: https://npm.io/package/@types/passport-vkontakte

## Dependencies (2)

- [@types/express](https://npm.io/package/@types/express.md) *
- [@types/passport](https://npm.io/package/@types/passport.md) *

## Recent versions

- 1.3.6 (latest) — 2025-10-24
- 1.3.5 (ts5.1) — 2023-11-07
- 1.3.2 (ts4.4) — 2023-07-12
- 1.3.1 (ts3.6) — 2021-07-08
- 1.3.0 (ts3.5) — 2018-09-28
- 1.3.4 — 2023-10-18
- 1.3.3 — 2023-09-24

## README

# Installation
> `npm install --save @types/passport-vkontakte`

# Summary
This package contains type definitions for passport-vkontakte (https://github.com/stevebest/passport-vkontakte#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-vkontakte.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-vkontakte/index.d.ts)
````ts
import express = require("express");
import * as passport from "passport";

export interface Profile extends passport.Profile {
    gender?: string | undefined;
    profileUrl?: string | undefined;

    _raw: string;
    _json: any;
}

export interface StrategyOptions {
    clientID: string;
    clientSecret: string;
    callbackURL: string;

    profileFields?: string[] | undefined;
    apiVersion?: string | undefined;

    lang?: string | undefined;
}

export type VerifyCallback = (error: any, user?: any, info?: any) => void;

export interface Params {
    accessToken: string;
    email?: string | undefined;
    expires_in: number;
    user_id: number;
}

export type VerifyFunctionWithParams = (
    accessToken: string,
    refreshToken: string,
    params: Params,
    profile: Profile,
    done: VerifyCallback,
) => void;

export type VerifyFunction = (
    accessToken: string,
    refreshToken: string,
    profile: Profile,
    done: VerifyCallback,
) => void;

export class Strategy implements passport.Strategy {
    constructor(
        options: StrategyOptions,
        verify: VerifyFunctionWithParams | VerifyFunction,
    );

    name: string;
    authenticate(req: express.Request, options?: any): void;
}

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport)

# Credits
These definitions were written by [Anton Lobashev](https://github.com/soulthreads).

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