Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Commit

Permalink
Updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alkihis committed Sep 9, 2020
1 parent e3f87a3 commit 24ec67e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SECRET_PUBLIC_KEY } from '../constants';
import logger from '../logger';

export default jwt({
algorithms: ['RS256'],
getToken: function fromHeaderOrQuerystring(req) {
if (req.headers.authorization && req.headers.authorization.split(' ')[0] === 'Bearer') {
return req.headers.authorization.split(' ')[1];
Expand Down

0 comments on commit 24ec67e

Please sign in to comment.