Skip to content

Commit a333277

Browse files
author
Eric Koleda
committed
Handle alternate expires_in used by Zoho. Fixes #198
1 parent 7bbfffb commit a333277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ Service_.prototype.getToken = function(optSkipMemoryCheck) {
630630
* @private
631631
*/
632632
Service_.prototype.isExpired_ = function(token) {
633-
var expiresIn = token.expires_in || token.expires;
633+
var expiresIn = token.expires_in_sec || token.expires_in || token.expires;
634634
if (!expiresIn) {
635635
return false;
636636
} else {

0 commit comments

Comments
 (0)