Esempio n. 1
0
    public async Task Logout()
    {
        await js.LocalStorageRemoveItem(TOKENKEY);

        httpClient.DefaultRequestHeaders.Authorization = null;
        NotifyAuthenticationStateChanged(Task.FromResult(Anonymous));
    }