I only checked with Google oAuth now (login_with_google.php).
Around line 24:
$client->redirect_uri = 'http://'.$_SERVER['HTTP_HOST'].
I had to manually change it to HTTPS because - well - nowadays you basically MUST use HTTPS anyway.
Sure, it could be automated as per SO:
stackoverflow.com/questions/1175096
...
But I strongly think that EVERY website must use HTTPS in 2021 (also because of the free Let's Encrypt), so I would "suggest" to change the source code for each oAuth to having HTTPS for the callback uri.
As said, I only checked Google, but I guess it's the same in the others