Created
October 18, 2021 13:48
-
-
Save hieptl/532ebb30c0311791184c654e685c7956 to your computer and use it in GitHub Desktop.
firebase.ts - Ionic Chat App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from "firebase"; | |
import "firebase/storage"; | |
const firebaseConfig = { | |
apiKey: `${process.env.REACT_APP_FIREBASE_API_KEY}`, | |
authDomain: `${process.env.REACT_APP_FIREBASE_AUTH_DOMAIN}`, | |
storageBucket: `${process.env.REACT_APP_FIREBASE_STORAGE_BUCKET}` | |
}; | |
const app = !firebase.apps.length | |
? firebase.initializeApp(firebaseConfig) | |
: firebase.app(); | |
const auth = app.auth(); | |
export { auth }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment