lib/workos/user_management.rb in workos-5.4.0 vs lib/workos/user_management.rb in workos-5.5.0

- old
+ new

@@ -316,17 +316,19 @@ # Authenticate a user using a refresh token. # # @param [String] refresh_token The refresh token previously obtained from a successful authentication call # @param [String] client_id The WorkOS client ID for the environment + # @param [String] organization_id The organization to issue the new access token for. (Optional) # @param [String] ip_address The IP address of the request from the user who is attempting to authenticate. # @param [String] user_agent The user agent of the request from the user who is attempting to authenticate. # # @return WorkOS::RefreshAuthenticationResponse def authenticate_with_refresh_token( refresh_token:, client_id:, + organization_id: nil, ip_address: nil, user_agent: nil ) response = execute_request( request: post_request( @@ -336,9 +338,10 @@ client_id: client_id, client_secret: WorkOS.config.key!, ip_address: ip_address, user_agent: user_agent, grant_type: 'refresh_token', + organization_id: organization_id, }, ), ) WorkOS::RefreshAuthenticationResponse.new(response.body)