-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
29 lines (26 loc) · 998 Bytes
/
firebase.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.14.0/firebase-app.js";
import { getAuth, createUserWithEmailAndPassword, signInWithEmailAndPassword, onAuthStateChanged, signOut, sendEmailVerification, RecaptchaVerifier, signInWithPhoneNumber, GoogleAuthProvider, signInWithPopup, FacebookAuthProvider } from "https://www.gstatic.com/firebasejs/10.14.0/firebase-auth.js";
const firebaseConfig = {
// Your web app's Firebase configuration
};
//Initializa App
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const googleProvider = new GoogleAuthProvider();
const facebookProvider = new FacebookAuthProvider();
auth.languageCode = 'en';
export {
auth,
createUserWithEmailAndPassword,
signInWithEmailAndPassword,
onAuthStateChanged,
signOut,
sendEmailVerification,
RecaptchaVerifier,
signInWithPhoneNumber,
GoogleAuthProvider,
googleProvider,
signInWithPopup,
FacebookAuthProvider,
facebookProvider
}