mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user