mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
ebd430ff84
commit
b0525e80a5
3
types/passport-jwt/index.d.ts
vendored
3
types/passport-jwt/index.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user