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

Improve API and doc and add complete working example with node.js #28

Merged
merged 10 commits into from Jan 4, 2017

Conversation

jinroh
Copy link
Contributor

@jinroh jinroh commented Jan 2, 2017

This PR should improve the documentation around the OAuth usage of the library.

It also adds an export of the library for nodejs as well as a complete example of how to use the library for an OAuth client with nodejs.

By implementing this example client I made a change in the defined API so that the onRegistered callback is now expected to return a Promise of the URL that the client should request containing the code and state. See the example for more details.

Also, the oauthFlow method should hopefully be a little simpler, and the options of OAuth passed to the constructor or init method are now in a separate object field named oauth.

@nono nono requested a review from aenario January 2, 2017 13:10
@jinroh
Copy link
Contributor Author

jinroh commented Jan 2, 2017

Rebased on master

@nono nono merged commit 7b67868 into master Jan 4, 2017
@nono nono deleted the oauth-nodejs branch January 4, 2017 15:30
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.

None yet

3 participants