From b0525e80a5928e09752e35ec0efd3dcbb56197bd Mon Sep 17 00:00:00 2001 From: BbangJin Date: Fri, 2 Feb 2018 06:58:39 +0900 Subject: [PATCH] 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. --- types/passport-jwt/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/passport-jwt/index.d.ts b/types/passport-jwt/index.d.ts index c300276fe2..0a71c4b725 100644 --- a/types/passport-jwt/index.d.ts +++ b/types/passport-jwt/index.d.ts @@ -4,11 +4,13 @@ // Alex Young // David Ng // Carlos Eduardo Scheffer +// Byungjin Kim // 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 {