Updating the log in ssoAuthDone method to improve privacy
This commit is contained in:
parent
854a604fbe
commit
c9eaf30057
@ -32,15 +32,15 @@ class PendingAuthHandler @Inject constructor(
|
|||||||
private val matrix: Matrix,
|
private val matrix: Matrix,
|
||||||
private val activeSessionHolder: ActiveSessionHolder,
|
private val activeSessionHolder: ActiveSessionHolder,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
var uiaContinuation: Continuation<UIABaseAuth>? = null
|
var uiaContinuation: Continuation<UIABaseAuth>? = null
|
||||||
var pendingAuth: UIABaseAuth? = null
|
var pendingAuth: UIABaseAuth? = null
|
||||||
|
|
||||||
fun ssoAuthDone() {
|
fun ssoAuthDone() {
|
||||||
Timber.d("ssoAuthDone $pendingAuth , continuation: $uiaContinuation")
|
|
||||||
pendingAuth?.let {
|
pendingAuth?.let {
|
||||||
|
Timber.d("ssoAuthDone, resuming action")
|
||||||
uiaContinuation?.resume(it)
|
uiaContinuation?.resume(it)
|
||||||
} ?: run {
|
} ?: run {
|
||||||
|
Timber.d("ssoAuthDone, cannot resume: no pendingAuth")
|
||||||
uiaContinuation?.resumeWithException(IllegalArgumentException())
|
uiaContinuation?.resumeWithException(IllegalArgumentException())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user