From 7ca457781255646ae9375ffdc01e025185ea7ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20Slint=C3=A1k?= Date: Mon, 6 Feb 2017 23:39:25 +0100 Subject: [PATCH] Add extended AuthenticateOptions interface to passport-facebook This is useful since passing options with authType to passport's authenticate method fails since passport itself doesn't know about it. You can use this extended instead to retype it to the one that this method supports instead. --- passport-facebook/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/passport-facebook/index.d.ts b/passport-facebook/index.d.ts index bcc742dae5..7b6cedeac5 100644 --- a/passport-facebook/index.d.ts +++ b/passport-facebook/index.d.ts @@ -19,6 +19,10 @@ interface Profile extends passport.Profile { _json: any; } +export interface AuthenticateOptions extends passport.AuthenticateOptions { + authType?: string; +} + interface IStrategyOption { clientID: string; clientSecret: string;