Example #1
0
        public async Task <bool> AuthorizeTokenSynchronisation()
        {
            if (storedSettingsService.ProfileId == null || storedSettingsService.AuthToken == null)
            {
                return(false);
            }
            else
            {
                string result = await serverApiService.GetValidAuthorizeToken(storedSettingsService.ProfileId, storedSettingsService.AuthToken);

                storedSettingsService.AuthToken = result;
                return(storedSettingsService.IsAuthorized);
            }
        }