From a23f04a82e5869a34f425b05471f5532a0595601 Mon Sep 17 00:00:00 2001 From: Borut Tomazin Date: Thu, 25 Apr 2024 12:43:22 +0200 Subject: [PATCH] Update response. --- Sources/Google/GoogleAuthenticator.swift | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 + ) } }