Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22599d48 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

clearAuthData in UserLoginUseCase

parent 81322e12
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -72,6 +72,8 @@ class UserLoginUseCase @Inject constructor(

    fun currentUser() = commonRepository.currentUser()

    fun clearAuthData() = commonRepository.clearAuthData()

    fun performAnonymousUserAuthentication(): Flow<Resource<AuthData>> = flow {
        anonymousUser().onEach { anonymousAuth ->
            // TODO -> If we are not using auth data then