Method: Auth0::Api::V2::Users#post_user_authentication_method
- Defined in:
- lib/auth0/api/v2/users.rb
#post_user_authentication_method(user_id, body) ⇒ Object Also known as: create_user_authentication_method
Create an authentication method for a user
382 383 384 385 386 387 |
# File 'lib/auth0/api/v2/users.rb', line 382 def post_user_authentication_method(user_id, body) raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty? raise Auth0::MissingParameter, 'Must supply a body' if body.to_s.empty? post "#{users_path}/#{user_id}/authentication-methods", body end |