module Aws::RefreshingToken
def refresh_if_near_expiration
Refreshes token if it is within
def refresh_if_near_expiration if near_expiration? @mutex.synchronize do if near_expiration? @before_refresh.call(self) if @before_refresh refresh end end end end