From 192d9cd46876e493a113d81833cac1d1969056bf Mon Sep 17 00:00:00 2001 From: Simon Mcloughlin Date: Fri, 15 Nov 2024 10:19:26 +0000 Subject: [PATCH] make sure new facebook code returns to main thread --- Sources/KukaiCoreSwift/Services/TorusAuthService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/KukaiCoreSwift/Services/TorusAuthService.swift b/Sources/KukaiCoreSwift/Services/TorusAuthService.swift index 0390ca8..a6ea289 100644 --- a/Sources/KukaiCoreSwift/Services/TorusAuthService.swift +++ b/Sources/KukaiCoreSwift/Services/TorusAuthService.swift @@ -285,7 +285,7 @@ public class TorusAuthService: NSObject { if authType == .facebook, let token = accessToken, let url = URL(string: "https://graph.facebook.com/me/permissions?access_token=\(token)") { networkService.delete(url: url) { result in - completion(Result.success(wallet)) + DispatchQueue.main.async { completion(Result.success(wallet)) } } } else { completion(Result.success(wallet))