/// <summary> /// Delete claims about the active user and return the user model /// Authentication using jwt authentication /// </summary> /// <param name="jsRuntime"></param> /// <returns></returns> public static Task DelUserDataAsync(this IJSRuntime jsRuntime) { jsRuntime.LocalStorageDelAsync("blazor"); return(Task.CompletedTask); }
/// <summary> /// Delete the access token the active user and return the user model /// Authentication using jwt authentication /// </summary> /// <param name="jsRuntime"></param> /// <returns></returns> public static Task DelUserTokenAsync(this IJSRuntime jsRuntime) { jsRuntime.LocalStorageDelAsync("token"); return(Task.CompletedTask); }