lib/ruby_lokalise_api.rb in ruby-lokalise-api-6.2.0 vs lib/ruby_lokalise_api.rb in ruby-lokalise-api-7.0.0

- old
+ new

@@ -41,10 +41,16 @@ # Reset the currently set OAuth2 client def reset_oauth2_client! @oauth2_client = nil end - def auth_client(client_id, client_secret) - RubyLokaliseApi::OAuth2::Auth.new client_id, client_secret + # Initializes a new Auth client to request OAuth 2 tokens + # + # @return [RubyLokaliseApi::OAuth2::Auth] + # @param client_id [String] + # @param client_secret [String] + # @param params [Hash] + def auth_client(client_id, client_secret, params = {}) + RubyLokaliseApi::OAuth2::Auth.new client_id, client_secret, params end end end