Method: Auth0::Api::V2::Anomaly#remove_ip_block

Defined in:
lib/auth0/api/v2/anomaly.rb

#remove_ip_block(ip) ⇒ Object

Resets an IP that is currently blocked by the failed login to multiple user accounts trigger.

Parameters:

  • ip (string)

    The IP to remove block.

Raises:

See Also:



20
21
22
23
24
25
# File 'lib/auth0/api/v2/anomaly.rb', line 20

def remove_ip_block(ip)
  raise Auth0::InvalidParameter, 'Must specify an IP' if ip.to_s.empty?

  path = "#{anomaly_path}/#{ip}"
  delete(path)
end