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

Need to add a param in config to hide sensitive error #74

Open
coratgerl opened this issue Oct 20, 2024 · 0 comments
Open

Need to add a param in config to hide sensitive error #74

coratgerl opened this issue Oct 20, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@coratgerl
Copy link
Collaborator

coratgerl commented Oct 20, 2024

Is your feature request related to a problem? Please describe.

We need to hide sensitive error message like user not found in production but not in dev to keep a clear message when we encountered an error.

Describe the solution you'd like

A param in config inside a new object name "security".

...
security : {
  hideSensitiveError: boolean
}

Then we need to find all sensitive errors in codebase, mainly in EmailPassword, SignIn and SignUp and put a generic message if this param is to true.

AdditionalContext

Need to add a documentation about this new params :)

@coratgerl coratgerl added good first issue Good for newcomers enhancement New feature or request labels Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant