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.
This commit is contained in:
Ondrej Slinták
2017-02-06 23:39:25 +01:00
parent 93b3bdc072
commit 7ca4577812

View File

@@ -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;