When I log out of the account and log in to another account, I log in to the previous account. When I log out, close and open the application, I can log in to another account properly. There is automatic login in the application. The interesting thing is that when I open and close the application when it logs into the wrong account, it logs into the correct account.
To give an example, when you log in to user 1 and log out, and then log in to user 2, user 1 appears. but when I open and close the application, user 2 appears.
Sign Out Code
suspend fun signOut() {
try {
auth.signOut()
oneTapClient.signOut().await()
} catch (e: Exception) {
e.printStackTrace()
if (e is CancellationException) throw e
}
}