I have created a testPartner account in sandbox and also merchant inside of it. Created application which provided client_id and client_secret to perform the flow as mention in documentation. However, the flow is working on postman / local. To redirect merchant to authorizenet portal to authenticate and return back with `code` and `state`.
But same code when deployed on server and exceute axios call for getting access and refesh token using code. /oauth/token api returning timeout. No sure why getting this issue. Please provide the fix for it.
Below is the error -
cause: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)