Oidc custom tab: avoid replay.

This commit is contained in:
Benoit Marty 2023-04-24 15:08:56 +02:00 committed by Benoit Marty
parent 0e9c7bc15a
commit 0766ec456c
2 changed files with 5 additions and 0 deletions

View file

@ -36,4 +36,8 @@ class DefaultOidcActionFlow @Inject constructor() : OidcActionFlow {
suspend fun collect(lambda: suspend (OidcAction?) -> Unit) {
mutableStateFlow.collect(lambda)
}
fun reset() {
mutableStateFlow.value = null
}
}

View file

@ -166,5 +166,6 @@ class LoginRootPresenter @Inject constructor(
}
}
}
defaultOidcActionFlow.reset()
}
}