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

Enable the use of useErrorHandler per route #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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