package com.zaojiao.app.feat.settings

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.zaojiao.app.core.auth.data.AuthRepository
import com.zaojiao.app.data.repo.UserRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject

@HiltViewModel
class SettingsViewModel @Inject constructor(
    private val authRepository: AuthRepository,
    private val userRepository: UserRepository,
) : ViewModel() {

    fun logout() {
        viewModelScope.launch {
            authRepository.clearToken()
        }
    }
}