forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
passport-facebook-token.d.ts
38 lines (32 loc) · 1.21 KB
/
passport-facebook-token.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Type definitions for passport-facebook-token 0.4.0
// Project: https://github.com/drudge/passport-facebook-token
// Definitions by: Ray Martone <https://github.com/rmartone>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../passport/passport.d.ts"/>
declare module 'passport-facebook-token' {
import passport = require('passport');
import express = require('express');
interface Profile extends passport.Profile {
gender: string;
profileUrl: string;
}
interface StrategyOptions {
clientID: string;
clientSecret: string;
authorizationURL?: string;
tokenURL?: string;
scopeSeparator?: string;
passReqToCallback?: Function;
enableProof?: boolean;
profileFields?: any[];
}
class Strategy implements passport.Strategy {
constructor(options: StrategyOptions,
verify: (accessToken: string,
refreshToken: string,
profile: Profile,
done: (err: any, user?: any) => void) => void);
name: string;
authenticate: (req: express.Request, options?: any) => void;
}
}