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 f6d6b0e commit a5ff1f7Copy full SHA for a5ff1f7
app-src/scripts/main/global-services/google-api-s.js
@@ -133,7 +133,7 @@
133
login() {
134
/*jshint camelcase: false */
135
const EXPIRES_SAFETY_MARGIN = 30000;
136
- const isExpired = (window.moment()
+ const isExpired = (!this.$rootScope.r.googleTokens.expiresAt || window.moment()
137
.valueOf() + EXPIRES_SAFETY_MARGIN > this.$rootScope.r.googleTokens.expiresAt);
138
139
if (this.$rootScope.r.googleTokens.accessToken && !isExpired) {
0 commit comments