I am working on a react app project that needs to be integrated with Salesforce, for that I found this information where I explain that I need to implement "Salesforce JWT OAuth 2.0 bearer flow":
I also found information to complete this procedure by creating a private key and self-signed digital certificate
After that, I found the panva/jose library. Based on this information and following the steps above, I am trying to implement this feature in React JS app.
After some testing, I got the signed JWT using importPKCS8(serverKey, 'RS256'), but even when getting a token, I checked JWT.io and got "Invalid Signature". What could be the cause of this?
I also found similar questions answered by Filip Skokan, then, Filip or someone else with experience in implementing this kind of future could explain step by step the correct way to implement it.
Thanks in advance.