-
Notifications
You must be signed in to change notification settings - Fork 1
cloudwrapper firebase HowTo
GitHub Action edited this page Apr 21, 2026
·
1 revision
This guide shows how the wrapper simplifies Firebase initialization.
The wrapper initializes the firebase-admin app. If you ever need to perform raw operations that aren't covered by Quatrain abstractions, you can access the initialized app directly.
import { CloudWrapper } from '@quatrain/cloudwrapper'
import * as admin from 'firebase-admin'
async function rawFirebaseOperation() {
// Ensure the wrapper is initialized first
const wrapper = CloudWrapper.getAdapter()
// You can now safely use the admin SDK without calling initializeApp
const app = admin.app()
console.log(`Using Firebase App: ${app.name}`)
}