Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
fix: parseBearerToken module issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JamilOmar committed Jan 30, 2019
1 parent 2511647 commit 7f9800b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const jwtAuthz = require('express-jwt-authz');
const jws = require('jsonwebtoken');
const socketRS256 = require('./socket/rs256');
const jwksClient = require('jwks-rsa');
const parseToken = require('parse-bearer-token');
const parseToken = require('parse-bearer-token').default;
const jwtAuthzSocket = require('./jwt-authz-socket');

const defaultJwksClientOptions = {
Expand Down
2 changes: 1 addition & 1 deletion lib/restrict-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'use strict';

const assert = require('assert'),
parseToken = require('parse-bearer-token'),
parseToken = require('parse-bearer-token').default,
{isObject} = require('lodash');

/**
Expand Down

0 comments on commit 7f9800b

Please sign in to comment.