예제 #1
0
 /// <summary>
 /// Validates token and get single claim with specified ClaimType.
 /// this method throws an exception if there is more than one element in the sequence.
 /// </summary>
 /// <param name="token"></param>
 /// <param name="claimType"></param>
 /// <returns></returns>
 public Task <string> GetSingleClaimAsync(Token token, string claimType) =>
 Task.FromResult(jwtTokenService.GetSingleClaim(token, claimType));