Use VerifyFunction ((error: any, user?: any, msg?: VerifyOptions): void ) in OAuth2Strategy instead of (error: any, user?: any) => void (#34850)

This commit is contained in:
Florian Gritsch
2019-04-26 15:50:37 -07:00
committed by Pranav Senthilnathan
parent 39e7075075
commit 03b4f06ce7
+2 -2
View File
@@ -76,7 +76,7 @@ declare class OAuth2Strategy implements passport.Strategy {
accessToken: string,
refreshToken: string,
profile: Profile,
done: (error: any, user?: any) => void
done: VerifyFunction
) => void
);
constructor(
@@ -86,7 +86,7 @@ declare class OAuth2Strategy implements passport.Strategy {
accessToken: string,
refreshToken: string,
profile: Profile,
done: (error: any, user?: any) => void
done: VerifyFunction
) => void
);