Пример #1
0
 public bool Validate([NotNull] string accessToken)
 {
     try
     {
         var tokenParameters = new TokenParameters
         {
             SigningKey = airCcConfigOptions.ApplicationSecret,
             Issuer     = airCcConfigOptions.ApplicationId,
             Audience   = "AirCC"
         };
         jwtTokenHandler.ValidateJwtToken(accessToken, tokenParameters);
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }