Skip to content

Commit b6a2672

Browse files
authored
chore: Updated typings (#2384)
1 parent a2ac25a commit b6a2672

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/authentication/src

‎packages/authentication/src/jwt.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ export class JWTStrategy extends AuthenticationBaseStrategy {
147147
};
148148
}
149149

150-
async parse (req: IncomingMessage) {
150+
async parse (req: IncomingMessage): Promise<{
151+
strategy: string;
152+
accessToken: string;
153+
} | null> {
151154
const { header, schemes }: { header: string, schemes: string[] } = this.configuration;
152155
const headerValue = req.headers && req.headers[header.toLowerCase()];
153156

0 commit comments

Comments
 (0)