Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }