Server-side Firebase Authentication Using Express JS

preview_player
Показать описание

Firebase supports session based server-side authentication that we'll implement today.

I write about React and TypeScript there

About Cross Site Forgery (CSRF)
Рекомендации по теме
Комментарии
Автор

Man, this is the best and the most straightforward tutorial on Planet Earth! All that's needed in one simple package, delivered by an awesome man in a clear and concise manner. Max karma and lots of love!

travelingentrepreneur
Автор

You're a life saver. Your videos to the rescue everytime I'm stuck somewhere. May the force be with you.

atr_
Автор

Believe me man your content is GOLD!. Make more videos on NodeJS.

sudomoon
Автор

Loved that you explained everything in a easy way, and even applied security.

joelsongoncalves
Автор

Greetings from Armenia..
liked your style.. it's very first video I've seen from you.. Just explored your channel, there's a lot of good stuff.. so Thanks man!

BoolFalse
Автор

You've been hoovering up my likes over the last few days Maksim. Thank you!

jamesdaniels
Автор

This is the project I have been looking for, thank you 🙏🙏🙏

maskman
Автор

Maksim, thanks for making the code available and a great walkthrough. I'm using this as a base for a university course I'm doing. This was the clearest explanation I found so far for a vanilla nodejs app with firebase without having to use a frontend framework. Keep it up!

DannyAslamPerez
Автор

Very interesting and insightful. Trying to build something here in Canada

Juliapak
Автор

Thank you for your really helpful content !

mj
Автор

Is there any way to decode sessionCookie or retrive user uid on the server side? I am making a protected route for one specific user and need user uid there. Great tutorial thanks!

porkkanaraaste
Автор

This is a really good demonstration. I request to make a tutorial of creating an API and explain only about the backend. BTW, thanks a lot.

mdminhazulislam
Автор

I keep getting invalid csrf token :( Anyone know how to fix?

freemanjiang
Автор

Thank you! Your video was very helpful.

JaimeGonzalez-wctx
Автор

Amazing video! Do you have any suggestions on how to proceed if—say—I'd like to integrate it with a database (mysql or postgres) and start to some basic REST/GraphQL resources?

luciferovonnachtosphere
Автор

Very good explanation, thank you. I am confused though. What happens to the "CSRF-TOKEN" after it is sent to the server in the POST request?

vgxp
Автор

why use csfr token if firebase auth is good it self??

antoniosalzano
Автор

Am I missing something? The API key is visible on the page source of the login page.

aryelol
Автор

Is there any method to refresh the cookie automatically after expires? to avoid ask the user to authenticate again to the app...

medicenvari
Автор

It is great but how can I make the session synced with onAuthStateChange function?

josephjasonbuhain