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 dbc13a3a3c
commit af0eab6f0c
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()
}
}