# @types/passport-cognito

> TypeScript definitions for passport-cognito

Latest version **0.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-11-07 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 0.1.3 (latest) — 2023-11-07
- 0.1.0 (ts2.3) — 2018-08-25
- 0.1.2 — 2023-10-18
- 0.1.1 — 2023-09-24

## README

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

export interface CognitoStrategyOptions {
    userPoolId: string;
    clientId: string;
    region: string;
}

export type CognitoVerifyFunction = (
    accessToken: string,
    idToken: string,
    refreshToken: string,
    user: object,
    done: (error: any, user?: any) => void,
) => any;

export class Strategy extends passport.Strategy {
    constructor(options: CognitoStrategyOptions, verify: CognitoVerifyFunction);

    name: string;
    authenticate(req: express.Request, options?: object): void;
}

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport)

# Credits
These definitions were written by [Maksym Butsykin](https://github.com/mbutsykin).

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