Skip to content

Commit

Permalink
fix(connection) changed token expiration calculation - issue googleap…
Browse files Browse the repository at this point in the history
  • Loading branch information
o-klp committed Sep 19, 2014
1 parent 4036816 commit eb9c5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Connection.prototype.fetchToken = function(callback) {
callback(err);
return;
}
var exp = new Date(body.token_expires * 1000);
var exp = new Date(body.expires_in * 1000);
callback(null, new Token(body.access_token, exp));
});
return;
Expand Down

0 comments on commit eb9c5d9

Please sign in to comment.