# @types/passport-oauth2-refresh

> TypeScript definitions for passport-oauth2-refresh

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

## Install

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

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2023-11-07 |
| First published | 2019-10-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 | 51442 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 1.1.4 (latest) — 2023-11-07
- 1.1.1 (ts2.8) — 2019-11-11
- 1.1.0 (ts2.3) — 2019-10-25
- 1.1.3 — 2023-10-18
- 1.1.2 — 2023-09-24

## README

# Installation
> `npm install --save @types/passport-oauth2-refresh`

# Summary
This package contains type definitions for passport-oauth2-refresh (https://github.com/fiznool/passport-oauth2-refresh#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-refresh.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-oauth2-refresh/index.d.ts)
````ts
import { oauth2tokenCallback } from "oauth";
import { Strategy } from "passport-oauth2";

export function use(name: string | Strategy, strategy?: Strategy): void;

export function has(name: string): boolean;

export function requestNewAccessToken(name: string, refreshToken: string, done: oauth2tokenCallback): any;
export function requestNewAccessToken(name: string, refreshToken: string, params: any, done: oauth2tokenCallback): any;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/oauth](https://npmjs.com/package/@types/oauth), [@types/passport-oauth2](https://npmjs.com/package/@types/passport-oauth2)

# Credits
These definitions were written by [Daphne Smit](https://github.com/daphnesmit), and [Brian Torres-Gil](https://github.com/btorresgil).

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