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

Better client.login() feedback #22

Merged
merged 2 commits into from
Mar 23, 2018
Merged

Better client.login() feedback #22

merged 2 commits into from
Mar 23, 2018

Conversation

timolins
Copy link
Collaborator

  • Return response data on `client.login()``
  • Updated tests for new API
  • Updated README (with a cookieStore example instead of the manual method)

Currently there is no way to tell if a login attempt was successful, since the endpoint also returns status 200 when provided with wrong credentials. For this reason I would suggest to return the endpoint response on client.login(), which contains the needed information. Credentials and cookies can still be accessed with client.credentials, so no functionality will be lost here.

This pull request contains breaking changes, which means we should bump the version to 2.0.0 when/if this gets merged.

@timolins timolins requested a review from jlobos March 22, 2018 17:09
@timolins timolins merged commit 360c797 into master Mar 23, 2018
@timolins timolins deleted the login-feedback branch March 23, 2018 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants