diff --git a/Package.swift b/Package.swift index 2ab9ef1..72cc3ad 100644 --- a/Package.swift +++ b/Package.swift @@ -49,7 +49,6 @@ let package = Package( name: "PovioKitAuthFacebook", dependencies: [ "PovioKitAuthCore", - .product(name: "PovioKitCore", package: "PovioKit"), .product(name: "FacebookLogin", package: "facebook-ios-sdk") ], path: "Sources/Facebook", diff --git a/Sources/Facebook/FacebookAuthenticator.swift b/Sources/Facebook/FacebookAuthenticator.swift index d811bd4..90bd25a 100644 --- a/Sources/Facebook/FacebookAuthenticator.swift +++ b/Sources/Facebook/FacebookAuthenticator.swift @@ -8,7 +8,6 @@ import Foundation import FacebookLogin -import PovioKitCore import PovioKitAuthCore public final class FacebookAuthenticator { @@ -106,7 +105,7 @@ private extension FacebookAuthenticator { do { let data = try JSONSerialization.data(withJSONObject: response, options: []) - let object = try data.decode(GraphResponse.self, with: decoder) + let object = try decoder.decode(GraphResponse.self, from: data) let authResponse = Response( userId: object.id,