Merge pull request #4058 from AndreasGassmann/patch-1

Add support for 'passReqToCallback' to passport-local
This commit is contained in:
Masahiro Wakame
2015-04-08 00:29:54 +09:00
+2
View File
@@ -13,6 +13,7 @@ declare module 'passport-local' {
interface IStrategyOptions {
usernameField?: string;
passwordField?: string;
passReqToCallback?: boolean;
}
interface IVerifyOptions {
@@ -20,6 +21,7 @@ declare module 'passport-local' {
}
interface VerifyFunction {
(req: express.Request, username: string, password: string, done: (error: any, user?: any, options?: IVerifyOptions) => void): void;
(username: string, password: string, done: (error: any, user?: any, options?: IVerifyOptions) => void): void;
}