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()];