If you wish to upgrade to v3 then I think it would be no issue to keep this method.
Should work in v3 too.
I'm not a developer. Out of interest, do you use Shopkeeper or Commerce?
The only issue you might run into could be webusers (front-end login) if you use that.
v3 just have the possibility to use Laravel but the old method works too.