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

More descriptive errors to client #7

Open
clarkritchie opened this issue Sep 16, 2015 · 1 comment
Open

More descriptive errors to client #7

clarkritchie opened this issue Sep 16, 2015 · 1 comment

Comments

@clarkritchie
Copy link

Thanks for making this package -- it's working really well so far.

Question: Is there a way to return more descriptive errors to the client? For example, requestPhoneVerification, which is only callable from the client, throws a descriptive error on the server (Error: Too often retries, try again in 15 seconds.), but all the client sees is a 500 Meteor Error.

Thanks again.

@okland
Copy link
Owner

okland commented Sep 22, 2015

@clarkritchie i wasn't sure if its a best practice to return descriptive errors from login to the client,
For example wrong password or too often retries so an attacker could not try to out-smart the system by how it work, if you would like to add it you are more than welcome to change the errors on the methods to throw Meteor.Error(403, ' Error: Too often retries, try again in 15 seconds.') and create PR and i will merge it :)

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

No branches or pull requests

2 participants