I am using the mobile app for past 6 months and as a developer, I started to modify some functionality for my moodle site.
Actually, I was looking at the code but not able to find how login system works in the mobile app. It only asks the first time to log in. Then onwards it directly login your account automatically to access the courses.
I have managed to store userid and password to local storage by adding simple code in credentials.js