Skip to content

Commit

Permalink
Update response.
Browse files Browse the repository at this point in the history
  • Loading branch information
borut-t committed Apr 25, 2024
1 parent 8af4d08 commit a23f04a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Sources/Google/GoogleAuthenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}

0 comments on commit a23f04a

Please sign in to comment.