From e0b11a0726d71f3138817dbeb023b9d26b6dae3e Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Fri, 19 Oct 2018 11:07:54 +0200 Subject: [PATCH] adds prop "state" to passport AuthenticateOptions also removes it from passport-github2 --- types/passport-github2/index.d.ts | 3 +-- types/passport/index.d.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/passport-github2/index.d.ts b/types/passport-github2/index.d.ts index 91adbb6567..0b2c1f6a5d 100644 --- a/types/passport-github2/index.d.ts +++ b/types/passport-github2/index.d.ts @@ -21,7 +21,6 @@ export interface StrategyOption extends passport.AuthenticateOptions { scope?: string[]; userAgent?: string; - state?: boolean; authorizationURL?: string; tokenURL?: string; @@ -42,7 +41,7 @@ export interface _StrategyOptionsBase extends OAuth2StrategyOptionsWithoutRequir scope?: string[]; userAgent?: string; - state?: boolean; + state?: string; authorizationURL?: string; tokenURL?: string; diff --git a/types/passport/index.d.ts b/types/passport/index.d.ts index fe0c26c775..1a8afed691 100644 --- a/types/passport/index.d.ts +++ b/types/passport/index.d.ts @@ -45,6 +45,7 @@ declare namespace passport { successMessage?: boolean | string; successRedirect?: string; successReturnToOrRedirect?: string; + state?: string; pauseStream?: boolean; userProperty?: string; passReqToCallback?: boolean;