The setup looks like this:
var blah = function () { var check = false; verify({ success: function () { if... check = true; else... check = false; }}); return check; };
The idea is to use the check function to check something, and then return true or false . However, the above method always returns false - return before calling the success function.
How do I get the results I need?
source share