Really this is more of a hot-fix. client.api.createClient should take in a success and error callback in its .then() method, but it is not using the error callback even when an error is sent.
Manually checks for a result.error field.
This will prevent billing route from being called if there's an error signing up the user with bridge.
Really this is more of a hot-fix.
client.api.createClient
should take in a success and error callback in its.then()
method, but it is not using the error callback even when an error is sent.Manually checks for a
result.error
field.This will prevent billing route from being called if there's an error signing up the user with bridge.