Skip to content

Commit

Permalink
FI-2329 Add integer conversion to need_to_refresh? method (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
360dgries committed Dec 27, 2023
1 parent 0e4c42a commit 95adb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inferno/dsl/oauth_credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def need_to_refresh?

return true if expires_in.blank?

token_retrieval_time.to_i + expires_in - DateTime.now.to_i < 60
token_retrieval_time.to_i + expires_in.to_i - DateTime.now.to_i < 60
end

# @private
Expand Down

0 comments on commit 95adb9b

Please sign in to comment.