Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Passport's authorize function accepts Strategy (DefinitelyTyped#45817)
  • Loading branch information
pupeno committed Jul 6, 2020
1 parent fd848fb commit 58e1365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/passport/index.d.ts
Expand Up @@ -69,8 +69,8 @@ declare namespace passport {
initialize(options?: { userProperty: string; }): InitializeRet;
session(options?: { pauseStream: boolean; }): AuthenticateRet;

authenticate(strategy: string | string[], callback?: (...args: any[]) => any): AuthenticateRet;
authenticate(strategy: string | string[], options: AuthenticateOptions, callback?: (...args: any[]) => any): AuthenticateRet;
authenticate(strategy: string | string[] | Strategy, callback?: (...args: any[]) => any): AuthenticateRet;
authenticate(strategy: string | string[] | Strategy, options: AuthenticateOptions, callback?: (...args: any[]) => any): AuthenticateRet;
authorize(strategy: string | string[], callback?: (...args: any[]) => any): AuthorizeRet;
authorize(strategy: string | string[], options: AuthorizeOptions, callback?: (...args: any[]) => any): AuthorizeRet;
serializeUser<TUser, TID>(fn: (user: TUser, done: (err: any, id?: TID) => void) => void): void;
Expand Down

0 comments on commit 58e1365

Please sign in to comment.