New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@mastra/auth-firebase

Package Overview
Dependencies
Maintainers
7
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mastra AI framework compromise" supply chain attack.

Affected versions:

1.0.1
View campaign page

@mastra/auth-firebase

Mastra Firebase Auth integration

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
412
-65.87%
Maintainers
7
Weekly downloads
 
Created
Source

@mastra/auth-firebase

@mastra/auth-firebase verifies Firebase ID tokens and can use Firestore data for authorization decisions. Use it when Firebase Authentication already manages your users and Mastra endpoints should honor those identities.

Installation

npm install @mastra/auth-firebase

Usage

Set FIREBASE_SERVICE_ACCOUNT and, when needed, FIRESTORE_DATABASE_ID.

import { Mastra } from '@mastra/core/mastra';
import { MastraAuthFirebase } from '@mastra/auth-firebase';

export const mastra = new Mastra({
  server: {
    auth: new MastraAuthFirebase(),
  },
});

Documentation

  • Firebase integration guide
  • Firebase provider reference

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.

FAQs

Package last updated on 03 Sep 2026

Related posts