0.4.38 • Published 6 months ago
@types/passport-facebook-token v0.4.38
Installation
npm install --save @types/passport-facebook-token
Summary
This package contains type definitions for passport-facebook-token (https://github.com/drudge/passport-facebook-token).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-facebook-token.
index.d.ts
// Type definitions for passport-facebook-token 0.4
// Project: https://github.com/drudge/passport-facebook-token
// Definitions by: Ray Martone <https://github.com/rmartone>, Michael Randolph <https://github.com/mrand01>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as passport from 'passport';
import * as express from 'express';
declare namespace PassportFacebookToken {
interface StrategyStatic {
new(options: StrategyOptionsWithRequest, verify: VerifyFunctionWithRequest): StrategyInstance;
new(options: StrategyOptions, verify: VerifyFunction): StrategyInstance;
}
interface StrategyInstance {
name: string;
authenticate: (req: express.Request, options?: any) => void;
}
interface ValueObject {
value: string;
}
interface Profile extends passport.Profile {
provider: string;
id: string;
displayName: string;
name: {
familyName: string;
givenName: string;
middleName: string;
};
gender: string;
emails: ValueObject[];
photos: ValueObject[];
_raw: string;
_json: any;
}
interface StrategyOptions {
clientID: string;
clientSecret: string;
authorizationURL?: string | undefined;
tokenURL?: string | undefined;
scopeSeparator?: string | undefined;
enableProof?: boolean | undefined;
profileFields?: string[] | undefined;
fbGraphVersion?: string | undefined;
}
interface StrategyOptionsWithRequest extends StrategyOptions {
passReqToCallback: true;
}
type VerifyFunction = (accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void;
type VerifyFunctionWithRequest = (req: express.Request, accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void;
}
declare const PassportFacebookToken: PassportFacebookToken.StrategyStatic;
export = PassportFacebookToken;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:22 GMT
- Dependencies: @types/passport, @types/express
- Global values: none
Credits
These definitions were written by Ray Martone, and Michael Randolph.
0.4.37
7 months ago
0.4.38
6 months ago
0.4.36
8 months ago
0.4.35
3 years ago
0.4.34
4 years ago
0.4.33
6 years ago
0.4.32
7 years ago
0.4.31
7 years ago
0.4.30
7 years ago
0.4.29
8 years ago
0.4.28
8 years ago
0.4.27-alpha
8 years ago
0.4.26-alpha
8 years ago
0.4.25-alpha
8 years ago
0.4.24-alpha
8 years ago
0.4.23-alpha
8 years ago
0.4.22-alpha
8 years ago
0.4.21-alpha
8 years ago
0.4.16-alpha
8 years ago
0.4.15-alpha
8 years ago