Skip to content

Commit

Permalink
Fixed check for the expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
gridanjbf committed Apr 17, 2024
1 parent 62a50a1 commit cf9e1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sharepoint/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def fetch
def expired?
return true unless fetched_at && expires_in

token_fetched_at + Token.expires_in < Time.now.utc.to_i
(fetched_at + expires_in) < Time.now.utc.to_i
end
end # endof Token

Expand Down

0 comments on commit cf9e1fe

Please sign in to comment.