46
loading...
This website collects cookies to deliver better user experience
npm init @vitejs/app <project_name>
cd <project_name>
npm install
npm run dev
npm install -g firebase-tools
firebase login //to access your firebase project created from the previous step
npm install --save [email protected] //Latest beta when I write this
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
var firebaseConfig = {
apiKey: "<apiKey>",
authDomain: "",
databaseURL: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
};
const firebaseApp = initializeApp(firebaseConfig);
const auth = getAuth(firebaseApp);
export { auth };