Improved the login dataStore
This commit is contained in:
@@ -46,8 +46,8 @@ class LoginDataStore @Inject constructor(@ApplicationContext context: Context) {
|
|||||||
|
|
||||||
suspend fun clearLoginData() {
|
suspend fun clearLoginData() {
|
||||||
dataStore.edit { preferences ->
|
dataStore.edit { preferences ->
|
||||||
preferences.remove(LOGIN_ID_KEY)
|
preferences[LOGIN_ID_KEY] = ""
|
||||||
preferences.remove(PASSWORD_KEY)
|
preferences[PASSWORD_KEY] = ""
|
||||||
preferences[IS_LOGGED_IN_KEY] = false
|
preferences[IS_LOGGED_IN_KEY] = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user