Improved the login dataStore

This commit is contained in:
sathwikcs
2024-10-22 17:02:56 +05:30
parent 3f0f10e2c6
commit f578e537e0

View File

@@ -46,8 +46,8 @@ class LoginDataStore @Inject constructor(@ApplicationContext context: Context) {
suspend fun clearLoginData() {
dataStore.edit { preferences ->
preferences.remove(LOGIN_ID_KEY)
preferences.remove(PASSWORD_KEY)
preferences[LOGIN_ID_KEY] = ""
preferences[PASSWORD_KEY] = ""
preferences[IS_LOGGED_IN_KEY] = false
}
}