-
Notifications
You must be signed in to change notification settings - Fork 25
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
Incorrect mutation to options
object
#332
Comments
Thanks for catching this. What kind of bad behavior is the deletion of the domain property causing? |
Closing for lack of response from the OP |
Apologies for not getting back quick enough. We are using the options object in other part of our application - so passing it around on service start. This mutation caused a bug in a dependent service. |
Can you send a PR please? I'll reopen the issue |
Sure thing! Travelling at the moment and don't have access to a computer. Will raise one after I'm back home :) |
@vjrngn are you still going to submit a PR? |
Hey folks 👋🏼
I recently updated the package to
1.2.0
and looks like there's a bug that was introduced (link below)https://github.com/nearform/fastify-auth0-verify/blob/master/index.js#L15C28-L15C28
My application sets the
options.domain
property but it is being deleted which is causing an bad behaviour.Ideally, you would create a copy of the options object and leave user options untouched.
Didn't send a PR since this is a single line change. Happy to send a PR if that helps
Proposal:
The text was updated successfully, but these errors were encountered: