diff --git a/src/index.ts b/src/index.ts index 11d88021..12751ddb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import { UnauthorizedError } from './errors/UnauthorizedError'; export type GetVerificationKey = (req: express.Request, token: jwt.Jwt | undefined) => Promise; export type IsRevoked = (req: express.Request, token: jwt.Jwt | undefined) => Promise; -type TokenGetter = (req: express.Request) => string | Promise | undefined; +export type TokenGetter = (req: express.Request) => string | Promise | undefined; type Params = { secret: jwt.Secret | GetVerificationKey,