I am trying to integrate IG labs api with my React.js application. But, the encryption method for the password is failing, I mean it's saying that the password is invalid when calling the session api.
The example here uses pidcrypt which is deprecated now. For instance I have used JsEncrypt but as I said, it's not working. What is the modern way to handle the login with encrypted password?
This is the code I tried-
https://codesandbox.io/p/sandbox/silly-field-6mkd2p