예제 #1
0
        private async Task Logout()
        {
            await JsRuntime.DeleteCookieAsync(AppStrings.ATAAuthTokenKey); // workaround: not working

            HostClient.DefaultRequestHeaders.Remove(AppStrings.ATAAuthTokenKey);
            NavigationManager.NavigateTo($"https://security.app.ataair.ir/Application/Login.aspx?ReturnUrl={AppSettings.Urls!.AppAddress}", true);
        }