From c1361ab173a66b624bf754c6a0681de1a8cc5843 Mon Sep 17 00:00:00 2001 From: Richard Bateman Date: Thu, 4 Apr 2019 22:41:05 -0600 Subject: [PATCH 1/2] Created feature branch Update_passport_facebook From f8214892ad8d9edf9119c5a38d0949d0921d6a51 Mon Sep 17 00:00:00 2001 From: Richard Bateman Date: Thu, 4 Apr 2019 22:41:57 -0600 Subject: [PATCH 2/2] Fix compile error in typescript 3.4; passport.Strategy is an interface and must be implemented, not extended --- types/passport-facebook/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/passport-facebook/index.d.ts b/types/passport-facebook/index.d.ts index 89ce91b093..726a72228b 100644 --- a/types/passport-facebook/index.d.ts +++ b/types/passport-facebook/index.d.ts @@ -47,7 +47,7 @@ export type VerifyFunction = export type VerifyFunctionWithRequest = (req: express.Request, accessToken: string, refreshToken: string, profile: Profile, done: (error: any, user?: any, info?: any) => void) => void; -export class Strategy extends passport.Strategy { +export class Strategy implements passport.Strategy { constructor(options: StrategyOptionWithRequest, verify: VerifyFunctionWithRequest); constructor(options: StrategyOption, verify: VerifyFunction);