Can this be simplified like this:

- In the template where the buttons are rendered depending on which are enabled, add an ID or data attribute of the type of social login to the button. Also add a class that identifies each button as a login button and you can bind one click handler to.
- When clicked, the id on the button is enough to pass in to `doSocialLogin` instead of having a switch statement that will need to be adjusted when more social login options become available.