Skip to content

Commit

Permalink
Allow null as a return type for JwtFromRequestFunction type
Browse files Browse the repository at this point in the history
  • Loading branch information
wayne-rebl committed Jan 17, 2019
1 parent 33f6179 commit a017907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/feathersjs__authentication-jwt/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a017907

Please sign in to comment.