auth fallback, cordova.js