Skip to content

Commit

Permalink
export TokenGetter
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Apr 25, 2022
1 parent 65457ac commit eb7479b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { UnauthorizedError } from './errors/UnauthorizedError';
export type GetVerificationKey = (req: express.Request, token: jwt.Jwt | undefined) => Promise<jwt.Secret>;
export type IsRevoked = (req: express.Request, token: jwt.Jwt | undefined) => Promise<boolean>;

type TokenGetter = (req: express.Request) => string | Promise<string> | undefined;
export type TokenGetter = (req: express.Request) => string | Promise<string> | undefined;

type Params = {
secret: jwt.Secret | GetVerificationKey,
Expand Down

0 comments on commit eb7479b

Please sign in to comment.