-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
24 lines (21 loc) · 1.04 KB
/
config.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
// Для роботи із firebase обовʼязково треба ініціалізувати проект
import { initializeApp } from 'firebase/app';
// Функція для підключення авторизації в проект
import { getAuth } from 'firebase/auth';
// Функція для підключення бази даних у проект
import { getFirestore } from 'firebase/firestore';
// Функція для підключення сховища файлів в проект
import { getStorage } from 'firebase/storage';
const firebaseConfig = {
apiKey: 'AIzaSyC7Z7_-Y0HZydiU1oV6nn67k_xdA2wTdKw',
authDomain: 'auth-4cd7f.firebaseapp.com',
databaseURL: 'https://auth-4cd7f-default-rtdb.firebaseio.com',
projectId: 'auth-4cd7f',
storageBucket: 'auth-4cd7f.appspot.com',
messagingSenderId: '584186100730',
appId: '1:584186100730:web:7d9867ccbf4b0067e48243',
};
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = getFirestore(app);
export const storage = getStorage(app);