I am writing the Webhook to handle automatic micro deposits for Plaid in C#. I don't entirely understand how it is supposed to work, mainly because the examples are in other languages I don't know.
My first problem is will Plaid send me a string? I'm guessing the Jwt is a string?
My code:
var token = "[someJwtstring]";
var handler = new JwtSecurityTokenHandler();
var jsonToken = handler.ReadJwtToken(token);
//Get the Json Web Key from the API using the key id
var verifyJwt = await _plaidRepo.VerifyWebHook(jsonToken.Header.Kid);
var webkey = new JsonWebKey()
{
Alg = verifyJwt.Data.alg,
Crv = verifyJwt.Data.crv,
Kty = verifyJwt.Data.kty,
Use = verifyJwt.Data.use,
X = verifyJwt.Data.x,
Y = verifyJwt.Data.y
};
So up to here I understand...but now what? What do I do with the web key so that I can get the request body?