-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conversation
joshcanhelp
commented
Jul 13, 2018
- Update docs links
- More clear descriptions and param names
# @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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
f1a6749
to
333fc78
Compare
333fc78
to
3aa0fa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM