Fix browserify withCredential issue