From a01790783c74c65e3f125673042d83481d9e9e96 Mon Sep 17 00:00:00 2001 From: Wayne Parrott Date: Thu, 17 Jan 2019 12:06:38 +1000 Subject: [PATCH] Allow null as a return type for JwtFromRequestFunction type --- types/feathersjs__authentication-jwt/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/feathersjs__authentication-jwt/index.d.ts b/types/feathersjs__authentication-jwt/index.d.ts index d78a23c643..16d79bb885 100644 --- a/types/feathersjs__authentication-jwt/index.d.ts +++ b/types/feathersjs__authentication-jwt/index.d.ts @@ -52,7 +52,7 @@ export class Verifier { verify(req: Request, payload: any, done: (error: any, user?: any, info?: any) => void): void; } -export type JwtFromRequestFunction = (req: Request) => string; +export type JwtFromRequestFunction = (req: Request) => string | null; export const ExtractJwt: { fromHeader(header_name: string): JwtFromRequestFunction;