We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd46151 commit b9585b6Copy full SHA for b9585b6
src/TokenStorage.js
@@ -54,7 +54,7 @@ class TokenStorage {
54
const updatedResponseData = Object.assign({}, responseData);
55
updatedResponseData.expires_at = null;
56
57
- if (typeof updatedResponseData.expires_in !== 'undefined' && updatedResponseData.expires_in >= 0) {
+ if (typeof updatedResponseData.expires_in !== 'undefined' && updatedResponseData.expires_in !== null && updatedResponseData.expires_in >= 0) {
58
updatedResponseData.expires_at = Math.round(callTimestamp / 1000) + updatedResponseData.expires_in;
59
}
60
0 commit comments