Exemplo n.º 1
0
        public async Task <Self> SignIn()
        {
            if (string.IsNullOrWhiteSpace(_settings.SlackApiAuthToken))
            {
                ShowSignIn();
                return(null);
            }

            try
            {
                var self = await _slackClient.SignIn();
                await RefreshAll(true);

                return(self);
            }
            catch
            {
                ShowSignIn();
                return(null);
            }
        }