Skip to content

Commit

Permalink
make sure new facebook code returns to main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Nov 15, 2024
1 parent bb7aff9 commit 192d9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KukaiCoreSwift/Services/TorusAuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 192d9cd

Please sign in to comment.