Closed MichielProost closed 4 years ago
We went for a 'no need to log in'-philosophy so checking for isLoggedIn()
is not a good option as it requires a log in. Waiting for handleSignin() to finish is a much better approach. We could use Flutter's AbsorbPointer for this purpose
Thank you for all your guidance and wisdom. Much appreciated
The user is automatically logged in when the application starts. If he is impatient, he can cause a few errors, for example:
How can this be stopped? In the method handleSignIn() there is a 1-2 second pause before the data of the global app_user is fetched. It is in this pause, that the user can cause the errors. An idea would be to wait for the handleSignIn() method to finish. Another idea would be to block the user while appUser.isLoggedIn == false.
Anywho, this requires some investigating.