Move api_auth() out to a file that can be included from plugins/modules
Created by: kenrestivo
This might be a bit controversial: but move the api_auth() function out to its own include file, to allow pluins to include it and use it to expose their own programmatic API.
I hope to use this for the hub account migrator, which is taking shape gradually.