I have a Kotlin Compose app that allows users to authenticate with Facebook and Google. During the login process, a CircularProgressIndicator is displayed and spins until the user’s account creation and login are completed. However, the CircularProgressIndicator freezes for a few seconds, it looks like the app is blocked. I suspect this is due to thread management issues, as the login process runs on a separate thread.
Does anyone have suggestions on how to keep the CircularProgressIndicator running smoothly without any interruptions? Should I consider placing it on a dedicated thread?
Thank you for your help!