Consider replacing social plugin with oidc_login
The social plugin was forked into oidc_login which provides a few more handles, mostly, skipping the login screen and redirect directly to hydra.
It would be nice to implement this. Potentially there is a configuration difference, which can be a complication. Social plugin uses a json file to push into the nextcloud client, while oidc_login seems to depend on config.php