Merge pull request #32233 from wayne-rebl/allow-null-for-JwtFromRequestFunction

Allow null as a return type for JwtFromRequestFunction type
This commit is contained in:
Benjamin Lichtman
2019-01-22 19:31:47 -08:00
committed by GitHub

View File

@@ -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;