mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Update index.d.ts
This commit is contained in:
@@ -8,7 +8,7 @@ import { Application } from '@feathersjs/feathers';
|
||||
import { Request } from 'express';
|
||||
import * as self from '@feathersjs/authentication-jwt';
|
||||
|
||||
declare const feathersAuthenticationJwt: ((options?: FeathersAuthenticationJWTOptions) => () => void) & typeof self;
|
||||
declare const feathersAuthenticationJwt: ((options?: Partial<FeathersAuthenticationJWTOptions>) => () => void) & typeof self;
|
||||
export default feathersAuthenticationJwt;
|
||||
|
||||
export interface FeathersAuthenticationJWTOptions {
|
||||
@@ -43,10 +43,10 @@ export interface FeathersAuthenticationJWTOptions {
|
||||
/**
|
||||
* A Verifier class. Defaults to the built-in one but can be a custom one. See below for details.
|
||||
*/
|
||||
Verifier: JWTVerifier;
|
||||
Verifier: Verifier;
|
||||
}
|
||||
|
||||
export class JWTVerifier {
|
||||
export class Verifier {
|
||||
constructor(app: Application, options: any); // the class constructor
|
||||
|
||||
verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user