From c5d8f57b133cb1b2958cdc3a63f2732986cc6afb Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Wed, 10 Jun 2015 10:30:39 -0700 Subject: [PATCH] Fixes a bug where expired token would not be refreshed --- src/utils/HubUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/HubUtil.js b/src/utils/HubUtil.js index f3eb313bbe..e28ad9e785 100644 --- a/src/utils/HubUtil.js +++ b/src/utils/HubUtil.js @@ -62,7 +62,7 @@ module.exports = { let data = JSON.parse(body); // If the JWT has expired, then log in again to get a new JWT - if (data && data.detail === 'Signature has expired.') { + if (data && data.detail.indexOf('expired') !== -1) { let config = this.config(); if (!this.config()) { this.logout();