Skip to content

Commit

Permalink
Add support for refresh_expires_in (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc authored Sep 22, 2022
1 parent 6476916 commit 6ae908a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ Service_.prototype.ensureExpiresAtSet_ = function(token) {
var expiresAt = grantedTime + Number(expiresIn);
token.expiresAt = expiresAt;
}
var refreshTokenExpiresIn = token.refresh_token_expires_in;
var refreshTokenExpiresIn = token.refresh_token_expires_in ||
token.refresh_expires_in;
if (refreshTokenExpiresIn) {
var refreshTokenExpiresAt = grantedTime + Number(refreshTokenExpiresIn);
token.refreshTokenExpiresAt = refreshTokenExpiresAt;
Expand Down

0 comments on commit 6ae908a

Please sign in to comment.