Firebase web app Snippets
Visual studio code snippets extension for building firebase web apps, includes:
- HTML Firebase products CDN snippets
- Firebase Auth API snippets
- Firebase Firestore API snippets
Get Firebase products CDN
Get Firebase products CDN script tags in HTML files.
Get all CDN by typing firebase-cdn-all
Get single product CDN by typing firebase-cdn-${PRODUCT_NAME}
Trigger |
Description |
firebase-cdn-all |
Firebase all products CDN |
firebase-cdn-app |
Firebase App CDN |
firebase-cdn-auth |
Firebase Auth CDN |
firebase-cdn-firestore |
Firebase Storage CDN |
Firebase Auth
Get Firebase Auth API in JavaScript files.
Get Firebase Auth functions by typing auth.${FUNCTION_NAME}
Trigger |
Description |
auth.signInWithEmailAndPassword |
Firebase Auth sign in with email and password |
auth.onAuthStateChanged |
Firebase Auth on auth state changed |
auth.createUserWithEmailAndPassword |
Firebase Auth create user with email and password |
auth.signOut |
Firebase Auth sign out |
auth.currentUser |
Firebase Auth get current user |
auth.currentUser.sendEmailVerification |
Firebase Auth send verification email to current user |
Google and Facebook provider
Trigger |
Description |
auth.GoogleAuthProvider |
Create a Firebase Auth Google auth provider |
auth.FacebookAuthProvider |
Create a Firebase Auth Facebook auth provider |
auth.designInWithPopup |
Firebase Auth sign in with Popup |
Firebase Firestore
Get Firebase Firestore API in JavaScript files.
Firestore db initialize
Typing firestore.init to set db as database of Firestore.
const db = firebase.firestore();
Firestore API
Get Firebase Firestore functions by typing db.${FUNCTION_NAME}
Trigger |
Description |
db.add |
Firebase Firestore add a document |
db.set |
Firebase Firestore set a document |
db.update |
Firebase Firestore update a document |
db.delete |
Firebase Firestore delete a document |
db.getCollection |
Firebase Firestore get collection |
db.getCollectionByOrder |
Firebase Firestore get collection by order |
db.getDoc |
Firebase Firestore get a document |
Enjoy!
| |