# @types/passport-oauth2-client-password

> TypeScript definitions for passport-oauth2-client-password

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

## Install

```sh
npm install @types/passport-oauth2-client-password
pnpm add @types/passport-oauth2-client-password
yarn add @types/passport-oauth2-client-password
bun add @types/passport-oauth2-client-password
```

## 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; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2025-10-24 |
| First published | 2016-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 0.1.6 (latest) — 2025-10-24
- 0.1.5 (ts5.1) — 2023-11-07
- 0.1.2 (ts4.1) — 2018-04-03
- 0.1.0 (ts2.2) — 2016-11-29
- 0.1.4 — 2023-10-18
- 0.1.3 — 2023-09-24
- 0.1.1 — 2017-10-25

## README

# Installation
> `npm install --save @types/passport-oauth2-client-password`

# Summary
This package contains type definitions for passport-oauth2-client-password (https://github.com/jaredhanson/passport-oauth2-client-password).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-client-password/index.d.ts)
````ts
/// <reference types="passport"/>
/// <reference types="express"/>

import express = require("express");
import * as passport from "passport";

interface StrategyOptionsWithRequestInterface {
    passReqToCallback: boolean;
}

interface VerifyFunctionWithRequest {
    (
        req: express.Request,
        clientId: string,
        clientSecret: string,
        done: (error: any, client?: any, info?: any) => void,
    ): void;
}

interface VerifyFunction {
    (clientId: string, clientSecret: string, done: (error: any, client?: any, info?: any) => void): void;
}

declare class Strategy extends passport.Strategy {
    constructor(options: StrategyOptionsWithRequestInterface, verify: VerifyFunctionWithRequest);
    constructor(verify: VerifyFunction);

    name: string;
    authenticate(req: express.Request, options?: {}): 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 [Ivan Zubok](https://github.com/akaNightmare).

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