In this video I am going to show you how to do add authentication to your express.js server with firebase authentication. code: github.com/Chensokheng/fireba... discord: / discord Twiiter / sokhengchen
Why do people not make videos on the backend like this with React and the Firebase admin SDK? is easier on the back end than on the front end, so that's why they think, Oh, it's not necessary. Please give me some ideas to find a solution.
Thanks a lot for this video 👍❤️ At 26:49, can we put service account key json file in gitignore? At the time of deployment/hosting, do we need to change its configuration?
i've been searching for DAYS how to decode a jwt using firebase I nothing was working, I read the docs several times I nothing worked, but this tutorial solved my problem. Thank u so much! wtf, I am dumb or the docs are not that good?
This is what I need. Thanks man. But why should we added Bearer? whereas we will remove it on server? What is the use of Bearer? Btw, it's a great tutor.
Oh, really nice Now what if I wanted to use the backend to make requests to firebase so that I could get the data I want? Can I use the same credentials I get?
Hello, great video. I've read a lot about the security issues that come with setting up firebase on your front end. Is there something I am missing here, why is the firebase-config login on the front end. Shouldn't this be in your express files? I am sorry if this is a dumb question, I am seriously struggling with this concept.
@@yusufn8268 couldn'r we just pass the authorization to the backend, with a login route? or use cookies in the frontend via ssr to hold the credentias instead
My doubt exactly. And if we have a backend, why don't transfer the login and register logic there? Is it safe keeping your firebase config in frontend?
how come importing firebase from 'firbase/app' in app.js file works? i thought you would import from your 'firebase-config.js' file since it's the one you initialized.
Well there 2 ways that you can do: 1. You can deploy both of server and frontend together by wrap both of it inside docker compose and deploy it with any cloud provider that support docker. 2. You can deploy separately: - Frontend: deploy with Firebase or any other support platform - Backend: deploy with Google cloud or digital ocean or any other support platforms. After that you can use library like axios to communicate between front to back. Finally if you just want to do something like a demo deploy frontend with Firebase and backend with heroku because both of these are free depending on your use case. Hopefully this can help. Happy coding
And when I tried to do res.headers.authorization.split() its throwing error as undefined I’m not sure why thats hapening but the token everything is pssed perfectly
Sir, i'm a newbie programmer and i have some questions, can i use firebase just for auth, and for crud other data i use other database like mysql? Thank you sir, i hope you answer me🙌🙌
with version 9 change all type: import firebase from "firebase/app"; import "firebase/analytics"; by import firebase from "firebase/compat/app"; import "firebase/compat/analytics"; libre de errores en la consola.