mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Passport's authorize function accepts Strategy (#45817)
Some references: https://medium.com/passportjs/authenticate-using-strategy-instances-49e58d96ec8c https://stackoverflow.com/a/62644453/6068
This commit is contained in:
parent
fd848fb675
commit
58e136504d
4
types/passport/index.d.ts
vendored
4
types/passport/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user