From e7fe6e2e8d95feffbd8fd81bf4eeabef1b372a37 Mon Sep 17 00:00:00 2001 From: Simon Mcloughlin Date: Fri, 1 Nov 2024 15:40:16 +0000 Subject: [PATCH] - fix key name --- 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 a64c80f..0390ca8 100644 --- a/Sources/KukaiCoreSwift/Services/TorusAuthService.swift +++ b/Sources/KukaiCoreSwift/Services/TorusAuthService.swift @@ -250,7 +250,7 @@ public class TorusAuthService: NSObject { completion(Result.failure(KukaiError.internalApplicationError(error: TorusAuthError.missingVerifier))) } - let accessToken = data.userInfo["accessToken"] as? String + let accessToken = data.userInfo["access_token"] as? String // Twitter API doesn't give us the bloody "@" handle for some reason. Fetch that first and overwrite the username property with the handle, if found if authType == .twitter {