Loading app/src/main/java/foundation/e/apps/utils/modules/DataStoreModule.kt +7 −1 Original line number Diff line number Diff line Loading @@ -64,12 +64,18 @@ class DataStoreModule @Inject constructor( } } /** * Destroy auth credentials if they are no longer valid. * * Modification for issue: https://gitlab.e.foundation/e/backlog/-/issues/5168 * Previously this method would also remove [USERTYPE]. * But now it is only to be done from [saveUserType] passing [User.UNAVAILABLE] when clicking logout. */ suspend fun destroyCredentials() { context.dataStore.edit { it.remove(AUTHDATA) it.remove(EMAIL) it.remove(OAUTHTOKEN) it.remove(USERTYPE) } } Loading Loading
app/src/main/java/foundation/e/apps/utils/modules/DataStoreModule.kt +7 −1 Original line number Diff line number Diff line Loading @@ -64,12 +64,18 @@ class DataStoreModule @Inject constructor( } } /** * Destroy auth credentials if they are no longer valid. * * Modification for issue: https://gitlab.e.foundation/e/backlog/-/issues/5168 * Previously this method would also remove [USERTYPE]. * But now it is only to be done from [saveUserType] passing [User.UNAVAILABLE] when clicking logout. */ suspend fun destroyCredentials() { context.dataStore.edit { it.remove(AUTHDATA) it.remove(EMAIL) it.remove(OAUTHTOKEN) it.remove(USERTYPE) } } Loading