mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[passport-jwt] Fix the missing secretOrKeyProvider (#20615)
* Fix the missing secretOrKeyProvider In passport-jwt v3.0.0 it has dynamic secretOrKey support, but has not been implemented so far in DefinitelyTyped. This commit corrects this. * Update index.d.ts
This commit is contained in:
committed by
Sheetal Nandi
parent
fc5404090d
commit
aeba5ae685
Vendored
+4
-2
@@ -1,8 +1,9 @@
|
||||
// Type definitions for passport-jwt 2.0
|
||||
// Type definitions for passport-jwt 3.0
|
||||
// Project: https://github.com/themikenicholson/passport-jwt
|
||||
// Definitions by: TANAKA Koichi <https://github.com/mugeso/>
|
||||
// Alex Young <https://github.com/alsiola/>
|
||||
// David Ng <https://github.com/davidNHK/>
|
||||
// Carlos Eduardo Scheffer <https://github.com/carlosscheffer/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -15,7 +16,8 @@ export declare class Strategy extends PassportStrategy {
|
||||
}
|
||||
|
||||
export interface StrategyOptions {
|
||||
secretOrKey: string | Buffer;
|
||||
secretOrKey?: string | Buffer;
|
||||
secretOrKeyProvider?: any;
|
||||
jwtFromRequest: JwtFromRequestFunction;
|
||||
issuer?: string;
|
||||
audience?: string;
|
||||
|
||||
Reference in New Issue
Block a user