From 307f57416bf56d70eb6519246e8a25f753498f3d Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Wed, 10 Jun 2015 10:40:03 -0700 Subject: [PATCH] Fix checking for expired token --- 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 e28ad9e785..e14ca89ef3 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.indexOf('expired') !== -1) { + if (data && data.detail && data.detail.indexOf('expired') !== -1) { let config = this.config(); if (!this.config()) { this.logout();