Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix docblocks for Authentication API endpoints #119

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

joshcanhelp
Copy link
Contributor

  • Update docs links
  • More clear descriptions and param names

@joshcanhelp joshcanhelp added this to the v4-Next milestone Jul 13, 2018
# @return [json] Returns the created user
def signup(email, password, connection_name = UP_AUTH)
raise Auth0::InvalidParameter, 'Must supply a valid email' if email.to_s.empty?
raise Auth0::InvalidParameter, 'Must supply a valid password' if password.to_s.empty?
request_params = {
client_id: @client_id,
Copy link
Contributor Author

@joshcanhelp joshcanhelp Jul 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the order to match function params

def change_password(email, password, connection_name = UP_AUTH)
raise Auth0::InvalidParameter, 'Must supply a valid email' if email.to_s.empty?
request_params = {
client_id: @client_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the order to match function params

def start_passwordless_email_flow(email, send = 'link', auth_params = {})
raise Auth0::InvalidParameter, 'Must supply a valid email' if email.to_s.empty?
request_params = {
client_id: @client_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the order to match function params

# @param phone_number [string] User's phone number.
def start_passwordless_sms_flow(phone_number)
raise Auth0::InvalidParameter, 'Must supply a valid phone number' if phone_number.to_s.empty?
request_params = {
client_id: @client_id,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the order to match function params

@joshcanhelp joshcanhelp force-pushed the add-auth-endpoints-docs branch 2 times, most recently from f1a6749 to 333fc78 Compare July 17, 2018 16:00
Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshcanhelp joshcanhelp merged commit 4a79030 into master Jul 20, 2018
@joshcanhelp joshcanhelp deleted the add-auth-endpoints-docs branch July 20, 2018 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants