Add Expres.Request to verify function

This commit is contained in:
pathanin
2017-02-14 08:35:34 +07:00
parent 8e2708ca21
commit ce3154548d
+1 -1
View File
@@ -36,7 +36,7 @@ interface IStrategyOption {
declare class Strategy implements passport.Strategy {
constructor(options: IStrategyOption,
verify: (accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void);
verify: (req?: express.Request, accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void);
name: string;
authenticate: (req: express.Request, options?: Object) => void;
}