Closed madrinekariuki closed 4 days ago
issue related to #219
Did some investigations on this - this happens because the initial access token fetch and the credentials persistence and the subsequent data fetch happen asynchronously. i.e. by the time the Practitioner data fetch details is being triggered the credentials have not been saved yet so that request will not have an access token available.
Usually it is available at the second try which is why it works then.
Apk:
engage-preview-20-nov-2024.apk
Device: Nokia G22android 14
&& samsung A12android 11
Describe the bug When one tries to login to the apk with the correct credentials , the app fails to login the first time and one has to click the login button again for a successful login. the error being thrown is Login error:
Failed to fetch user details
.To Reproduce
Expected behavior If the credentials are correct, the app should login on the first attempt.
Screenshots
https://github.com/user-attachments/assets/c94a87b2-0a89-4e31-af27-d02c07c0d107
see below 401 error response: