     var serverPublicSettings: AuthSettings?
     var temporary2FACode: String?
 
+    let socketHandlerToken = String.random(5)
+
     var loginServicesToken: NotificationToken?
 
     @IBOutlet weak var viewFields: UIView! {

        }

        self.updateAuthenticationMethods()
    }

    override func viewDidAppear(_ animated: Bool) {

        }

        API.shared.fetch(MeRequest()) { [weak self] result in
            guard let strongSelf = self else { return }

            strongSelf.stopLoading()
            SocketManager.removeConnectionHandler(token: strongSelf.socketHandlerToken)

            if let user = result?.user {
                if user.username != nil {

                    DispatchQueue.main.async {
                        strongSelf.dismiss(animated: true, completion: nil)
                        AppManager.reloadApp()
                    }
                } else {
                    DispatchQueue.main.async {
                        strongSelf.performSegue(withIdentifier: "RequestUsername", sender: nil)
                    }
                }
            }
