awinogrodzki/next-firebase-auth-edge

Next.js Firebase Authentication for Edge and Node.js runtimes. Compatible with latest Next.js features.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 42 minutes ago
Added to GitGenius on November 20th, 2024
Created on November 28th, 2022
Open Issues & Pull Requests: 8 (+0)
Number of forks: 56
Total Stargazers: 665 (+0)
Total Subscribers: 16 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 38.0 hours
Mean response time: 13.0 days
90th percentile: 26.1 days
Tracked items: 147

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Work labelled "resolved" is answered fastest, typically in about 2 days, while "waiting for confirmation" waits about 2 weeks. Only 10% of issues opened in the past year have been closed. Three people close 62% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 270 days
Stale 30+ days: 4
Stale 90+ days: 4

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (37)
  • enhancement (26)
  • resolved (21)
  • bug (17)
  • unconfirmed (13)
  • waiting for confirmation (11)
  • confirmed (9)
  • waiting for response (7)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Next-firebase-auth-edge is a TypeScript library that enables Firebase Authentication to work seamlessly with Next.js applications running on Edge and Node.js runtimes. The project addresses a fundamental compatibility issue: the official firebase-admin library depends heavily on Node.js's internal crypto library, which is unavailable in Next.js Edge Runtime. This library solves that problem by handling the creation and verification of Custom ID Tokens using the Web Crypto API instead, making Firebase authentication viable in edge computing environments.

The library is designed to support all the latest Next.js features, including the App Router and Server Components, while maintaining backward compatibility with legacy patterns like getServerSideProps and API Routes. According to the repository details, it has been classified across multiple authentication and infrastructure domains including next.js, firebase authentication, middleware, serverless, edge functions, and JWT verification, reflecting its broad applicability across modern web development stacks.

Key features of next-firebase-auth-edge include zero bundle size impact, minimal setup requirements that avoid the need for custom API routes or next.config.js modifications, and security-focused implementation using the jose library for JWT validation and rotating keys for cookie signing to prevent cryptanalysis attacks. The library handles authentication through middleware, streamlining the integration process significantly compared to alternative solutions.

Recent updates demonstrate active development and responsiveness to modern JavaScript ecosystem changes. The latest release includes support for Node.js 24 and NPM 11, Next.js 16, and React 19. New features added include the enableTokenRefreshOnExpiredKidHeader option for handling Google's public certificate expiration, a privatePaths option for the redirectToLogin helper function, and a Metadata feature allowing custom data storage in session cookies. The library also introduced removeServerCookies for logout handling from Server Actions, an experimental option to create anonymous users when no user is found, and full Firebase Emulator support for development without requiring a Firebase Project.

The repository shows active maintenance and community engagement. The project has attracted contributors from high-profile repositories including microsoft/vscode, microsoft/typescript, and rust-lang/rust, suggesting quality standards and cross-ecosystem relevance.

The library includes comprehensive documentation available at next-firebase-auth-edge-docs.vercel.app, along with a working demo and starter template. A HackerNews guide provides step-by-step setup instructions for developers new to Firebase or Next.js. The project supports multiple package managers including npm, yarn, and pnpm, and offers ESM, Browser, and Node.js imports for improved tree-shaking capabilities.