added call to save authToken in jswrapper