NextFire main logoNextFire
Docs X
Introduction
Get Started
Clone repo
Run the app
Configuration
Firebase
Create firebase app
Authentication
Firestore
Storage
Functions
Global configuration
Public
Site config
Payments
Stripe
One time
Subscriptions
Webhooks
Usage
Project structure
Static pages
Public pages
Protected pages
Auth
Client auth
Server auth
Data fetching
Firestore client
Firestore admin
Functions
Storage
Content
Blog
Documentation
Components
Markdown
Cards
Diagrams
Filetree
Lists
Maths
Notes
Steps
Table
Tabs
Public
Deep
Deeper
Even deeper
  1. Auth

Authentication

Overview of authentication setup in the Next.js + Firebase boilerplate using next-firebase-auth-edge. Covers client and server auth sections.

This boilerplate uses next-firebase-auth-edge to handle authentication in a Next.js + Firebase application.

Get auth users

Authentication in this boilerplate is split into two main parts, which will be covered in the following sections:

  • Client Auth – Handling authentication on the client side.
  • Server Auth Providers – Handling authentication on the server side.

For more advanced usage, including middleware, custom claims, and detailed configuration options, we encourage you to check out the official next-firebase-auth-edge documentation. It’s a great resource to understand all the features available and how to customize authentication to fit your app perfectly.

Protected pagesClient auth

Content

FeedbackEdit page

© 2025 Ship IT.

Rubix Studios logo