@@ -63,11 +63,11 @@ final class AuthenticationViewModel: ObservableObject {
6363 do {
6464
6565#if os(iOS)
66- let userAuth = try await authenticator. signIn ( with: rootViewController)
66+ let signInResult = try await authenticator. signIn ( with: rootViewController)
6767#elseif os(macOS)
68- let userAuth = try await authenticator. signIn ( with: presentingWindow)
68+ let signInResult = try await authenticator. signIn ( with: presentingWindow)
6969#endif
70- self . state = . signedIn( userAuth . user)
70+ self . state = . signedIn( signInResult . user)
7171 } catch {
7272 print ( " Error signing in: \( error) " )
7373 }
@@ -98,9 +98,9 @@ final class AuthenticationViewModel: ObservableObject {
9898#if os(iOS)
9999 /// Adds the requested birthday read scope.
100100 /// - parameter viewController: A `UIViewController` to use while presenting the flow.
101- /// - returns: The resulting`GIDUserAuth `.
101+ /// - returns: The `GIDSignInResult `.
102102 /// - throws: Any error that may arise while adding the read birthday scope.
103- func addBirthdayReadScope( viewController: UIViewController ) async throws -> GIDUserAuth {
103+ func addBirthdayReadScope( viewController: UIViewController ) async throws -> GIDSignInResult {
104104 return try await authenticator. addBirthdayReadScope ( viewController: viewController)
105105 }
106106#endif
@@ -109,9 +109,9 @@ final class AuthenticationViewModel: ObservableObject {
109109#if os(macOS)
110110 /// adds the requested birthday read scope.
111111 /// - parameter window: An `NSWindow` to use while presenting the flow.
112- /// - returns: The resulting `GIDUserAuth `.
112+ /// - returns: The `GIDSignInResult `.
113113 /// - throws: Any error that may arise while adding the read birthday scope.
114- func addBirthdayReadScope( window: NSWindow ) async throws -> GIDUserAuth {
114+ func addBirthdayReadScope( window: NSWindow ) async throws -> GIDSignInResult {
115115 return try await authenticator. addBirthdayReadScope ( window: window)
116116 }
117117#endif
0 commit comments