-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make booleans stringable #2
Conversation
Fixes "unsure of how to jsonify object of type boolean", e.g., supportsSms: false
Yea...the whole type conversion stuff in this plugin is really killing me...mostly the fact that there are like 3 crypto libraries all which have different types they use for representation of binary blobs is not helping... |
The jsonify(undefined) thing I dont really like as its usually an indication of a bug that should be caught there instead of propagating further (esp if we're about to save undefined) |
We could just as easily intercept it one call up the stack, in doAjax. That actually makes more sense now that I think about it. |
For example, when requesting a verification code, there is no JSON data to send.
Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false