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
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, @types/passport-oauth2
Credits
These definitions were written by Daphne Smit, and Brian Torres-Gil.