コード例 #1
0
        public async void SignIn()
        {
            Busy = true;
            LocalLogger.Log("Signing in...");
            var t = await Task.Run(() => _credentials.RenewBearerToken(_email, _password));

            _succeded           = !string.IsNullOrWhiteSpace(t?.AccessToken);
            AuthorizationStatus = _succeded ? "Success" : "Wrong email or password";
            if (_succeded)
            {
                _credentials.StoreCredentials(_email, _password);
                _credentials.GetJsonWebToken();
                TransferToEditorWindow();
            }
            Busy = false;
        }