diff --git a/MIGRATING.md b/MIGRATING.md index b055cac..fdb835e 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1 +1,4 @@ ## Migration Guides + +### Migration from versions < 1.4.0 +* [Google] Response field `token` was renamed to `accessToken`. You'll need to handle it on the call site. Additionally, `idToken` field was added in the response. diff --git a/Package.resolved b/Package.resolved index 416983e..0fe7538 100644 --- a/Package.resolved +++ b/Package.resolved @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/openid/AppAuth-iOS.git", "state" : { - "revision" : "8c0b028aedf617d6d780d448dc836f7048166d0f", - "version" : "1.7.4" + "revision" : "c89ed571ae140f8eb1142735e6e23d7bb8c34cb2", + "version" : "1.7.5" } }, { @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/facebook/facebook-ios-sdk", "state" : { - "revision" : "7fd8a930a5b2c940a22efafe0e214ed0df671312", - "version" : "15.1.0" + "revision" : "09eb5b0cb74127a360e0bc74a2d75ec1fd351e48", + "version" : "17.0.0" } }, { @@ -59,8 +59,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/poviolabs/PovioKit", "state" : { - "revision" : "c1f4299b7b262d81b335788625c1ef287dba4c95", - "version" : "3.3.0" + "revision" : "95371aebca733fa67be58c0239e12a97d1fcf163", + "version" : "3.3.1" } } ], diff --git a/Package.swift b/Package.swift index 77af002..1475912 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/poviolabs/PovioKit", .upToNextMajor(from: "3.0.0")), .package(url: "https://github.com/google/GoogleSignIn-iOS", .upToNextMajor(from: "7.0.0")), - .package(url: "https://github.com/facebook/facebook-ios-sdk", .upToNextMajor(from: "15.0.0")), + .package(url: "https://github.com/facebook/facebook-ios-sdk", .upToNextMajor(from: "17.0.0")), ], targets: [ .target( diff --git a/Resources/PrivacyInfo.xcprivacy b/Resources/PrivacyInfo.xcprivacy index 18ca0b4..5859ec0 100644 --- a/Resources/PrivacyInfo.xcprivacy +++ b/Resources/PrivacyInfo.xcprivacy @@ -3,7 +3,16 @@ NSPrivacyAccessedAPITypes - + + + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + + NSPrivacyTracking NSPrivacyTrackingDomains diff --git a/Sources/Google/GoogleAuthenticator+Models.swift b/Sources/Google/GoogleAuthenticator+Models.swift index 7e2865f..6b09234 100644 --- a/Sources/Google/GoogleAuthenticator+Models.swift +++ b/Sources/Google/GoogleAuthenticator+Models.swift @@ -11,7 +11,8 @@ import Foundation public extension GoogleAuthenticator { struct Response { public let userId: String? - public let token: String + public let idToken: String? + public let accessToken: String public let refreshToken: String public let name: String? public let email: String? diff --git a/Sources/Google/GoogleAuthenticator.swift b/Sources/Google/GoogleAuthenticator.swift index 01b6811..7a14db1 100644 --- a/Sources/Google/GoogleAuthenticator.swift +++ b/Sources/Google/GoogleAuthenticator.swift @@ -95,11 +95,14 @@ public extension GoogleAuthenticator { // MARK: - Private Extension private extension GIDGoogleUser { var authResponse: GoogleAuthenticator.Response { - .init(userId: userID, - token: accessToken.tokenString, - refreshToken: refreshToken.tokenString, - name: profile?.name, - email: profile?.email, - expiresAt: accessToken.expirationDate) + .init( + userId: userID, + idToken: idToken?.tokenString, + accessToken: accessToken.tokenString, + refreshToken: refreshToken.tokenString, + name: profile?.name, + email: profile?.email, + expiresAt: accessToken.expirationDate + ) } }