@como/como-client
Advanced tools
Comparing version
{ | ||
"name": "@como/como-client", | ||
"version": "0.7.59", | ||
"version": "0.7.60", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -9,4 +9,2 @@ const moment = require('moment-timezone'); | ||
const internalServices = ['como_connect']; | ||
const INITIAL_COMO_DATA = { | ||
@@ -107,3 +105,3 @@ env: environmentConfig, | ||
const { accessToken, refreshToken, expiresIn } = credentials; | ||
let credExist = isExists(accessToken) && isExists(refreshToken) || internalServices.includes(source); | ||
let credExist = isExists(accessToken) && isExists(refreshToken); | ||
let isExpired = credExist && expiresIn && moment(expiresIn).isBefore(moment()); | ||
@@ -110,0 +108,0 @@ let refreshFailed = false; |
Sorry, the diff of this file is too big to display
221704
-0.07%4738
-0.04%