From b6a26721bdfdc9dc9d94065e303c02982d5f3b53 Mon Sep 17 00:00:00 2001 From: Desmond Koh Date: Wed, 9 Jun 2021 04:33:38 +0800 Subject: [PATCH] chore: Updated typings (#2384) --- packages/authentication/src/jwt.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/authentication/src/jwt.ts b/packages/authentication/src/jwt.ts index 9620d5abc5..910e41190b 100644 --- a/packages/authentication/src/jwt.ts +++ b/packages/authentication/src/jwt.ts @@ -147,7 +147,10 @@ export class JWTStrategy extends AuthenticationBaseStrategy { }; } - async parse (req: IncomingMessage) { + async parse (req: IncomingMessage): Promise<{ + strategy: string; + accessToken: string; + } | null> { const { header, schemes }: { header: string, schemes: string[] } = this.configuration; const headerValue = req.headers && req.headers[header.toLowerCase()];