We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee39ba commit a7350f9Copy full SHA for a7350f9
data/core/src/commonMain/kotlin/com/tunjid/heron/data/repository/AuthRepository.kt
@@ -94,13 +94,7 @@ internal class AuthTokenRepository(
94
95
override val isGuest: Flow<Boolean> =
96
savedStateDataSource.savedState.map { savedState ->
97
- when (savedState.auth) {
98
- is SavedState.AuthTokens.Guest -> true
99
- is SavedState.AuthTokens.Authenticated,
100
- is SavedState.AuthTokens.Pending.DPoP,
101
- null,
102
- -> false
103
- }
+ savedState.auth is SavedState.AuthTokens.Guest
104
}
105
.distinctUntilChanged()
106
0 commit comments