Fixes authentication bugs for mobile apps