Rename API and update test.
This commit is contained in:
parent
65d682f8ca
commit
80fa442b64
4 changed files with 9 additions and 7 deletions
|
|
@ -20,7 +20,7 @@ class InMemorySessionStore(
|
|||
) : SessionStore {
|
||||
private val sessionDataListFlow = MutableStateFlow(initialList)
|
||||
|
||||
override fun isLoggedIn(): Flow<LoggedInState> {
|
||||
override fun loggedInStateFlow(): Flow<LoggedInState> {
|
||||
return sessionDataListFlow.map {
|
||||
if (it.isEmpty()) {
|
||||
LoggedInState.NotLoggedIn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue