Skip to content

Commit

Permalink
chore: Updated typings (#2384)
Browse files Browse the repository at this point in the history
  • Loading branch information
deskoh authored Jun 8, 2021
1 parent a2ac25a commit b6a2672
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/authentication/src/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()];

Expand Down

0 comments on commit b6a2672

Please # to comment.