-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
32 lines (30 loc) · 1016 Bytes
/
firebase.js
File metadata and controls
32 lines (30 loc) · 1016 Bytes
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
30
31
32
import {
initializeApp
} from "https://www.gstatic.com/firebasejs/11.8.1/firebase-app.js";
import {
getAuth,
createUserWithEmailAndPassword,
onAuthStateChanged,
validatePassword,
updateProfile,
updateEmail,
updatePassword,
sendEmailVerification,
sendPasswordResetEmail,
deleteUser,
reauthenticateWithCredential,
signOut
} from "https://www.gstatic.com/firebasejs/11.8.1/firebase-auth.js";
import { getDatabase, set, ref, get, child, update } from "https://www.gstatic.com/firebasejs/10.12.2/firebase-database.js";
const firebaseConfig = {
apiKey: "AIzaSyB85p06_QdLd_NXHyLhW7NUOM-8fhW6PJ8",
authDomain: "xnew3-92e01.firebaseapp.com",
databaseURL: "https://xnew3-92e01-default-rtdb.firebaseio.com",
projectId: "xnew3-92e01",
storageBucket: "xnew3-92e01.appspot.com",
messagingSenderId: "188202141203",
appId: "1:188202141203:web:8107a083b1ba12feaaa1e6"
};
export const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = getDatabase(app);