Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

d-fischer
Copy link

This PR adds useErrorHandler to the list of options passed to authenticate, authorize and token.

Maybe you want certain resources of your API to work with or without authentication, but not all of them? You can do that now using app.get('/your/resource', oauth.authenticate({ useErrorHandler: true }), () => {});.
Maybe you want a custom error handler for authorize but not for token? Works similarly.

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.

1 participant