The current authentication flow is complicated because the app is using both Azure AD authentication an Github Authentication. Splitting it in two separate apps targeted at two different groups or users ( github users on one side, company employee on the other) would make things a lot easier.