We used Auth0 for our own site Moesif to implement a muti tenant system where each user can have access to multiple accounts. Pretty easy to set up and Auth0 provides a lot of extra stuff, password reset, admin panel for non devs, transactional emails, etc.