-
Notifications
You must be signed in to change notification settings - Fork 19
Add next to default oauth handlers #280
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
base: main
Are you sure you want to change the base?
Conversation
the intension is that when an error occurs that isn't caught in an activity handler, the execution of all handlers coming after should not take place. Handling of said error should be done through the error event handler. |
is the use case that you want to implement custom handlers for the auth invoke activities? since this would only be an issue with verify state or exchange token im wondering what handlers you would need to come after them? I do think we need to have a way to disable the default auth invoke handlers to allow for custom implementations |
Ya just for these.
It's just unexpected that my handlers just don't work if i have them in app.on('signin.verifystate') etc. I could just wanna log it? Isn't it just good practice to propagate it? We can do it on success instead of always if that's the concern? |
I believe the convention is that when there's an error in the middleware it should terminate processing. Middlewares can determine when and if the next handler should be called. I agree that it's confusing if the user defined |
oh I see, on that case I would personally expect that if you do |
Ah that's an interesting idea. Though, then the devs would need to be aware that those routes require replacing right? Or are you saying for some routes (like the ones we provide default handlers for), we always replace the default handler? We could always flag "isInternal" for a given handler if we write it internally, and if the application overrides it, we replace it? |
Without these, we don't propagate the activity to any other handlers