Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#32233 from wayne-rebl/allow-null-f…
Browse files Browse the repository at this point in the history
…or-JwtFromRequestFunction

Allow null as a return type for JwtFromRequestFunction type
  • Loading branch information
uniqueiniquity authored Jan 23, 2019
2 parents ffd4e9a + a017907 commit 600f91e
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 600f91e

Please sign in to comment.