Add jsonWebTokenOptions type on passport-jwt StrategyOptions type. (#23309)

* feat: add jsonWebTokenOptions on passport-jwt StrategyOptions.

* feat: add contributor name on passport-jwt types.

* fix: jsonWebTokenOptions types from jsonwebtoken VerifyOptions.
This commit is contained in:
BbangJin 2018-02-02 06:58:39 +09:00 committed by Sheetal Nandi
parent ebd430ff84
commit b0525e80a5

View File

@ -4,11 +4,13 @@
// Alex Young <https://github.com/alsiola/>
// David Ng <https://github.com/davidNHK/>
// Carlos Eduardo Scheffer <https://github.com/carlosscheffer/>
// Byungjin Kim <https://github.com/jindev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Strategy as PassportStrategy } from 'passport-strategy';
import {Request} from 'express';
import { VerifyOptions } from 'jsonwebtoken'
export declare class Strategy extends PassportStrategy {
constructor(opt: StrategyOptions, verify: VerifyCallback);
@ -24,6 +26,7 @@ export interface StrategyOptions {
algorithms?: string[];
ignoreExpiration?: boolean;
passReqToCallback?: boolean;
jsonWebTokenOptions?: VerifyOptions;
}
export interface VerifyCallback {