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 6e2dbf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/common/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ Connection.prototype.fetchToken = function(callback) {
callback(err);
return;
}
var exp = new Date(body.token_expires * 1000);
console.log(body);
var exp = new Date(body.expires_in * 1000);
callback(null, new Token(body.access_token, exp));
});
return;
Expand Down

0 comments on commit 6e2dbf8

Please sign in to comment.