paint-brush
Next.js: Firebase Authentication and Middleware for API Routesby@dingran
174 reads

Next.js: Firebase Authentication and Middleware for API Routes

by Ran Ding10mFebruary 28th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recently I made a small web app that requires user accounts. I learned quite a bit about setting up authentication with Firebase on the client-side and using it on the server-side to protected API routes with a middleware pattern similar to Express.js. This post is a recap of what I learned based on this project for future reference. You can find the code for this project on GitHub here.

Company Mentioned

Mention Thumbnail
featured image - Next.js: Firebase Authentication and Middleware for API Routes
Ran Ding HackerNoon profile picture
Ran Ding

Ran Ding

@dingran

“Be curious. Read widely. Try new things.”

About @dingran
LEARN MORE ABOUT @DINGRAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ran Ding HackerNoon profile picture
Ran Ding@dingran
“Be curious. Read widely. Try new things.”

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
C7
Voizzy