From 912240904a71850a559391dc322cc355098020a9 Mon Sep 17 00:00:00 2001 From: Nico Nysten Date: Sun, 29 Jul 2018 23:43:40 +0300 Subject: [PATCH] Fix types --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index cd700fb..91c49c0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -14,7 +14,7 @@ declare namespace jwt { secret: string | Buffer; key?: string; tokenKey?: string; - getToken?(opts: jwt.Options): string; + getToken?(ctx: Koa.Context, opts: jwt.Options): string; isRevoked?(ctx: Koa.Context, decodedToken: object, token: string): Promise; passthrough?: boolean; cookie?: string;