Update AuthFactory.js