Method: B2::APIConnection#authorization_token

Defined in:
lib/b2/api_connection.rb

#authorization_tokenObject



58
59
60
61
62
63
# File 'lib/b2/api_connection.rb', line 58

def authorization_token
  if @auth_token_expires_at.nil? || @auth_token_expires_at <= Time.now.to_i
    reconnect!
  end
  @auth_token
end