From 3cfe7add2f787176b2655f223f95ac6060b522be Mon Sep 17 00:00:00 2001 From: theLee3 <46857988+theLee3@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:07:17 -0500 Subject: [PATCH] Add isAuthenticated check alongside DEBUG signInFailed. --- games_services/darwin/Classes/Auth.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games_services/darwin/Classes/Auth.swift b/games_services/darwin/Classes/Auth.swift index f659ce4..3d90896 100644 --- a/games_services/darwin/Classes/Auth.swift +++ b/games_services/darwin/Classes/Auth.swift @@ -14,7 +14,7 @@ class Auth: BaseGamesServices { func authenticateUser(result: @escaping FlutterResult) { #if DEBUG - if (self.debugSignInFailed) { + if (self.debugSignInFailed && !isAuthenticated) { result(PluginError.failedToAuthenticate.flutterError()) return }