Skip to content

Commit

Permalink
Merge pull request #151 from theLee3/fix-game-center-sign-in-hanging
Browse files Browse the repository at this point in the history
Add isAuthenticated check alongside DEBUG signInFailed.
  • Loading branch information
theLee3 authored Jan 29, 2024
2 parents 431e52d + 3cfe7ad commit 78b1716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games_services/darwin/Classes/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 78b1716

Please sign in to comment.