SSL is required on https oauth2/token call

oauth

#1

I am currently running an express server which connects to https://api.twiter.com/oauth2/token endpoint to get an access token. For some reason when I connect to it the response is “SSL is required”. But when I run the request through Charles Proxy the token call succeeds just fine and returns an access token. I’m not sure what I’m doing wrong.


#2

It seems I needed “strictSSL”: true when sending the request.