Last active
May 15, 2021 19:10
-
-
Save GeoffMahugu/899e1da8d141b96122faf09387797fce to your computer and use it in GitHub Desktop.
This is the auth module entry file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated rouute