learningequality / kolibri-installer-android

Android wrapper for Kolibri.
MIT License
26 stars 22 forks source link

Login does not persist across app restarts when get_os_user is used #183

Closed rtibbles closed 9 months ago

rtibbles commented 1 year ago

When using the get_os_user capability in the Android App, the following is reported:

After closing and relaunching the app I am always signed in as the super admin user regardless of the fact that there are other users on the device. This is especially confusing if I have been signed in as any of the other users prior to closing the app. Shouldn't this rule for automatically signing in the user be applied only if that is the only user on the device?

https://github.com/learningequality/kolibri/assets/79847249/1654b30b-0053-494d-8fc2-1b56560f50b6

Originally posted by @pcenov in https://github.com/learningequality/kolibri/issues/11352#issuecomment-1749176162

It is possible that this is a result of lack of persistence in the Android App, or the login logic being too aggressive (it is meant to check if the user is currently logged in, but maybe it is not being caught appropriately).