Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Last active May 15, 2021 19:10
Show Gist options
  • Save GeoffMahugu/899e1da8d141b96122faf09387797fce to your computer and use it in GitHub Desktop.
Save GeoffMahugu/899e1da8d141b96122faf09387797fce to your computer and use it in GitHub Desktop.
This is the auth module entry file
import firebase from 'firebase';
import { auth } from '../../config/firebase';
export const SignInWithSocialMedia = (provider: firebase.auth.AuthProvider) =>
new Promise<firebase.auth.UserCredential>((resolve, reject) => {
auth.signInWithPopup(provider)
.then(result => resolve(result))
.catch(error => reject(error));
});
@GeoffMahugu
Copy link
Author

Updated rouute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment