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

Commit 81322e12 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

method clearAuthData() for CommonRepository

parent f1603c31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -25,4 +25,5 @@ interface CommonRepository {
    fun currentUser(): User
    fun cacheAuthData(): AuthData
    fun resetCachedData()
    fun clearAuthData()
}
+4 −0
Original line number Diff line number Diff line
@@ -53,4 +53,8 @@ class CommonRepositoryImpl @Inject constructor(
            if (data.isEmpty()) throw Exception("Auth Data not available")
            return data.toAuthData()
        }

    override fun clearAuthData() {
        applicationContext.configurations.authData = ""
    }
}