Hi there,
Please refer to the following page of our developer documentation which describes the new classes added in v8.0 for this use-case: https://developers.whmcs.com/advanced/authentication/