File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
auth0/src/main/java/com/auth0/android/provider Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import kotlinx.coroutines.Dispatchers
1515import kotlinx.coroutines.suspendCancellableCoroutine
1616import kotlinx.coroutines.withContext
1717import java.util.Locale
18- import java.util.concurrent.CopyOnWriteArrayList
1918import java.util.concurrent.CopyOnWriteArraySet
2019import kotlin.coroutines.CoroutineContext
2120import kotlin.coroutines.resume
@@ -122,11 +121,15 @@ public object WebAuthProvider {
122121 state,
123122 object : Callback <Credentials , AuthenticationException > {
124123 override fun onSuccess (result : Credentials ) {
125- callbacks.forEach { it.onSuccess(result) }
124+ for (callback in callbacks) {
125+ callback.onSuccess(result)
126+ }
126127 }
127128
128129 override fun onFailure (error : AuthenticationException ) {
129- callbacks.forEach { it.onFailure(error) }
130+ for (callback in callbacks) {
131+ callback.onFailure(error)
132+ }
130133 }
131134 }
132135 )
You can’t perform that action at this time.
0 commit comments