Add an extra internalDetails property in Error/UnauthorizedError objects

Feature: Add an extra internalDetails property in Error/UnauthorizedError objects that will be saved to Auth0 logs (and will not be returned in response).

Description: Currently when an error is handled from an action, rule, or hook code, it gets both written to the Auth0 logs and returned in the response:
callback(new Error(“An error has occurred.”));

Use-case: This will allow having better diagnostics information without revealing the details to the end-user.

Hey there!

Thanks for creating this feedback card! Hope it will get some traction with other users!