Hi Bogdan,
Thanks for your feature request. The cPanel API provides this functionality you can leverage directly: https://documentation.cpanel.net/display/DD/Guide+to+API+Authentication+-+Single+Sign+On
Can you help me understand what the benefit would be to WHMCS duplicating this?