i am upgrading NopStation.MobileWebApi plugin from version 4.0 to 4.60
and i upraded all core services funcsions to latest core function and compiled the plugin successfully
but when i tried to call the endpoint from post man i got this error
Could not load file or assembly 'JWT, Version=10.0.0.0, Culture=neutral, PublicKeyToken=6f98bca0f40f2ecf'. The system cannot find the file specified.
as the old plugin using JWT package in this line
public int GetCustomerIdFromHeader()
{
StringValues headerValues;
var secretKey = Constant.SecretKey;
Request.Headers.TryGetValue(Constant.TokenName, out headerValues);
var token = headerValues.FirstOrDefault();
JsonNetSerializer serializer = new JsonNetSerializer();
JwtBase64UrlEncoder urlEncoder = new JwtBase64UrlEncoder();
JwtDecoder decoder = new JwtDecoder(serializer, urlEncoder);
var payload = decoder.DecodeToObject<IDictionary<string, object>>(token, secretKey);
//var payload = JWT.JsonWebToken.DecodeToObject<IDictionary<string, object>>(token, secretKey);
if (payload != null) return Convert.ToInt32(payload[Constant.CustomerIdName]);
return 0;
}
and when i downgraded this package to version 1.3.3
var payload = JWT.JsonWebToken.DecodeToObject<IDictionary<string, object>>
i got same error
Could not load file or assembly 'JWT, Version=1.3.3.0, Culture=neutral, PublicKeyToken=6f98bca0f40f2ecf'. The system cannot find the file specified.
anyone can help me please?