This might get you in the right direction. It's jQuery though.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago