diff --git a/Demo/AuthenticatorDemo/ViewController+WordPressAuthenticator.swift b/Demo/AuthenticatorDemo/ViewController+WordPressAuthenticator.swift index c5d8e55a6..666425deb 100644 --- a/Demo/AuthenticatorDemo/ViewController+WordPressAuthenticator.swift +++ b/Demo/AuthenticatorDemo/ViewController+WordPressAuthenticator.swift @@ -82,8 +82,9 @@ extension ViewController { WordPressAuthenticator.shared.delegate = self } - // TODO: Need to handle new user flow - func newGoogleSignInFlow() { + // Note that this method does not try to authenticate the user with the WordPress backend. + // It only verifies that we can get a token from Google. + func getAuthTokenFromGoogle() { Task { do { let token = try await self.googleAuthenticator.getOAuthToken() diff --git a/Demo/AuthenticatorDemo/ViewController.swift b/Demo/AuthenticatorDemo/ViewController.swift index 857481769..53b7820e6 100644 --- a/Demo/AuthenticatorDemo/ViewController.swift +++ b/Demo/AuthenticatorDemo/ViewController.swift @@ -20,11 +20,11 @@ class ViewController: UIViewController { self.initializeWordPressAuthenticator(withGoogleSDK: false) WordPressAuthenticator.showLoginFromPresenter(self, animated: true) }, - CellConfiguration(text: " Google SignIn - Standalone, Wihout SDK") { [weak self] in + CellConfiguration(text: "Get Google token only - Standalone, Wihout SDK") { [weak self] in guard let self else { fatalError() } self.initializeWordPressAuthenticator(withGoogleSDK: false) - self.newGoogleSignInFlow() + self.getAuthTokenFromGoogle() } ]