Why I am not able to use log out for users in android jetpack compose?
I have simple login app, user can login to app easily, but when click the logout, it is not working for logut the users in firebase, I don't know what I missed, any idea?
viewmodel:
@HiltViewModel
class MyViewModel @Inject constructor(
val auth: FirebaseAuth,
) : ViewModel() {
fun onSignOut() {
auth.signOut()
}
}
screen:
@Composable
fun HomeScreen(
navController: NavController,
model: MyViewModel
) {
OutlinedButton(
modifier...