Rename API and update test.

This commit is contained in:
Benoit Marty 2025-09-05 15:59:36 +02:00 committed by Benoit Marty
parent 65d682f8ca
commit 80fa442b64
4 changed files with 9 additions and 7 deletions

View file

@ -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