Skip to content

Commit

Permalink
Remove PovioKit dep from FB pckg.
Browse files Browse the repository at this point in the history
  • Loading branch information
borut-t committed May 22, 2024
1 parent da523d4 commit e46e340
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions Sources/Facebook/FacebookAuthenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import Foundation
import FacebookLogin
import PovioKitCore
import PovioKitAuthCore

public final class FacebookAuthenticator {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e46e340

Please sign in to comment.