Method: Authful::Api::ClassMethods#validate_recovery_code
- Defined in:
- lib/authful/api.rb
#validate_recovery_code(token, code) ⇒ Object
53 54 55 56 |
# File 'lib/authful/api.rb', line 53 def validate_recovery_code(token, code) res = Authful.send_request(:get, "/api/users/#{token}/recovery_codes/#{code}") res["ok"] == 1 end |