-
Notifications
You must be signed in to change notification settings - Fork 0
/
Firebase-config.js
23 lines (20 loc) · 805 Bytes
/
Firebase-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
// export default Firebase-config
import { initializeApp } from "firebase/app";
import { getAuth, GoogleAuthProvider } from "firebase/auth";
import { getStorage } from "firebase/storage";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
apiKey: process.env.NEXT_PUBLIC_API_KEY,
authDomain: "quiz-app-286d4.firebaseapp.com",
projectId: "quiz-app-286d4",
storageBucket: "quiz-app-286d4.appspot.com",
messagingSenderId: process.env.NEXT_PUBLIC_MESSAGING_SENDER_ID,
appId: process.env.NEXT_PUBLIC_APP_ID,
measurementId: "G-PPW2CWYKZ5",
};
//Initialize Firebase
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const provider = new GoogleAuthProvider();
export const storage = getStorage(app);
export const db = getFirestore(app);