Search code examples
azure-active-directory

authentication failed due to: self signed certificate in certificate chain error after hitting localhost:3000


I tried giving - npm config set strict-ssl=false

But still I see this error, I have configured my azure environment correctly

tried skipping the tls


Solution

  • go to index.js or app.js and add this line for least option and I hope it will work

    process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0