/// <summary> /// Get the claims about the active user and return the user model /// Authentication using jwt authentication /// </summary> /// <param name="jsRuntime"></param> /// <returns></returns> public static async Task <string> GetUserDataAsync(this IJSRuntime jsRuntime) { return(await jsRuntime.LocalStorageGetAsync("blazor")); }
/// <summary> /// Get the access token about the active user and return the user model /// Authentication using jwt authentication /// </summary> /// <param name="jsRuntime"></param> /// <returns></returns> public static async Task <string> GetUserTokenAsync(this IJSRuntime jsRuntime) { return(await jsRuntime.LocalStorageGetAsync("token")); }