17 lines
656 B
TypeScript
17 lines
656 B
TypeScript
import { getApp, getApps, initializeApp } from 'firebase/app';
|
|
import { getAuth, GoogleAuthProvider } from 'firebase/auth';
|
|
import { getFirestore } from 'firebase/firestore';
|
|
|
|
const app = getApps().length ? getApp() : initializeApp({
|
|
apiKey: 'AIzaSyD-ie8zTaAWvFUlCG5bHqRhfHKOcu4jPtg',
|
|
authDomain: 'motoapp-d22e0.firebaseapp.com',
|
|
projectId: 'motoapp-d22e0',
|
|
storageBucket: 'motoapp-d22e0.firebasestorage.app',
|
|
messagingSenderId: '809431485362',
|
|
appId: '1:809431485362:web:06fdcd9ca12ff9342472ab',
|
|
});
|
|
|
|
export const firebaseAuth = getAuth(app);
|
|
export const googleProvider = new GoogleAuthProvider();
|
|
export const firestore = getFirestore(app);
|