NodeJS server does not work when I use OIDC middleware NPM

0

I am trying to set up OKTA in my NodeJS app and I am required to have my app on HTTPS server. When I use HTTPS module in my app and it works fine. But as soon as I integrate it with OIDC middleware I start getting an error

ERR_SSL_VERSION_OR_CIPHER_MISMATCH

any idea what could have gone wrong here or any common issue with this set up?

Maybe this stack overflow thread might help?