Method: Azure::Storage::Common::Core::TokenCredential#renew_token

Defined in:
lib/azure/storage/common/core/token_credential.rb

#renew_token(new_token) ⇒ Object

Public: Renews the access token

Attributes

  • new_token - String. The new access token.



58
59
60
61
62
# File 'lib/azure/storage/common/core/token_credential.rb', line 58

def renew_token(new_token)
  @mutex.synchronize do
    @token = new_token
  end
end