-
Notifications
You must be signed in to change notification settings - Fork 1
auth firebase Overview
GitHub Action edited this page Apr 21, 2026
·
2 revisions
The Firebase Authentication adapter for @quatrain/auth.
Firebase Authentication provides backend services to authenticate users. This adapter implements the Quatrain Auth interface using the firebase-admin SDK to verify JWTs and manage users.
npm install @quatrain/auth-firebase firebase-admin
# or
yarn add @quatrain/auth-firebase firebase-adminRegister the adapter using your Firebase service account credentials.
import { Auth } from '@quatrain/auth'
import { FirebaseAuthAdapter } from '@quatrain/auth-firebase'
const firebaseAuth = new FirebaseAuthAdapter({
config: {
projectId: 'your-project-id',
clientEmail: 'firebase-adminsdk-xxx@your-project-id.iam.gserviceaccount.com',
privateKey: '-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n'
}
})
Auth.addAdapter('firebase', firebaseAuth, true)For concrete examples and usage guides, please refer to the How-To Guide.
AGPL-3.0-only