     }
     
     private func logIn(_ callback: @escaping (_ successful: Bool) -> Void) {
+        _isLoggingIn = true
         GKLocalPlayer.local.authenticateHandler = { viewController, error in
             if let vc = viewController {
                 Utils.getCurrentRootViewController()?.present(vc, animated: true) {

                }
            }
            if GKLocalPlayer.local.isAuthenticated {
                callback(true)
                GKLocalPlayer.local.authenticateHandler = nil
                return
            }
            if error != nil {
                callback(false)
                GKLocalPlayer.local.authenticateHandler = nil
            }
        }
    }

@objc(EEPlayBridge)
public class PlayBridge: NSObject, IPlugin, GKGameCenterControllerDelegate {
    private let _bridge: IMessageBridge
    private var _isLoggingIn = false
    
    public required init(_ bridge: IMessageBridge) {
        _bridge = bridge
