コード例 #1
0
ファイル: Tokens.cs プロジェクト: drualcman/ClassLibrary
 /// <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"));
 }
コード例 #2
0
ファイル: Tokens.cs プロジェクト: drualcman/ClassLibrary
 /// <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"));
 }