@@ -221,7 +221,7 @@ class AuthViewController: UIViewController, DataSourceProviderDelegate {
221221 }
222222 let credential = GoogleAuthProvider . credential ( withIDToken: idToken,
223223 accessToken: user. accessToken. tokenString)
224- try await newSignIn ( with: credential)
224+ try await signIn ( with: credential)
225225
226226 } catch {
227227 return displayError ( error)
@@ -232,23 +232,7 @@ class AuthViewController: UIViewController, DataSourceProviderDelegate {
232232 // [END headless_google_auth]
233233 }
234234
235- func signIn( with credential: AuthCredential ) {
236- // [START signin_google_credential]
237- AppManager . shared. auth ( ) . signIn ( with: credential) { result, error in
238- // [START_EXCLUDE silent]
239- guard error == nil else { return self . displayError ( error) }
240- // [END_EXCLUDE]
241-
242- // At this point, our user is signed in
243- // [START_EXCLUDE silent]
244- // so we advance to the User View Controller
245- self . transitionToUserViewController ( )
246- // [END_EXCLUDE]
247- }
248- // [END signin_google_credential]
249- }
250-
251- func newSignIn( with credential: AuthCredential ) async throws {
235+ func signIn( with credential: AuthCredential ) async throws {
252236 do {
253237 _ = try await AppManager . shared. auth ( ) . signIn ( with: credential)
254238 transitionToUserViewController ( )
0 commit comments