Skip to content

Commit

Permalink
fix(refresh): pass config param to requestHasAuthorizationHeader
Browse files Browse the repository at this point in the history
…check
  • Loading branch information
JoaoPedroAS51 authored and pi0 committed Mar 15, 2020
1 parent 5a49be2 commit a9d3f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class RefreshController {
if (!token || !refreshToken) {
// The authorization header in the current request is expired.
// Token was deleted right before this request
if (!token && this.requestHasAuthorizationHeader()) {
if (!token && this.requestHasAuthorizationHeader(config)) {
throw new ExpiredAuthSessionError()
}

Expand Down

0 comments on commit a9d3f6c

Please sign in to comment.