Setting Up Google Authentication in Firebase 9: A Step-by-Step Guide

  Рет қаралды 20,551

Brett Westwood - Software Engineer

Brett Westwood - Software Engineer

Күн бұрын

Пікірлер: 48
@cr_spirit3986
@cr_spirit3986 Жыл бұрын
I saw an hour long tutorial for this which was much more complicated. Bro explained auth in 10 minutes. Damn amazing!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Awesome! Thanks for the kind words!
@cr_spirit3986
@cr_spirit3986 Жыл бұрын
@@brettwestwooddeveloper Could you also make a video for firestore? That'd be amazing...
@Techn0mancer_X
@Techn0mancer_X Жыл бұрын
I have been struggling with how to add Google as an authentication provider for my app, and in 15 minutes you solved my problem. THANK YOU VERY MUCH (sorry for the caps)
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Awesome! I am glad I can hep. It definitely is frustrating when you can't figure something out.
@darlinmanuelcasadoperez1092
@darlinmanuelcasadoperez1092 2 ай бұрын
Thank you for the great tutorial! keep up the good work buddy!
@brettwestwooddeveloper
@brettwestwooddeveloper 2 ай бұрын
Thank you! Will do!
@andys_industries
@andys_industries Жыл бұрын
This tutorial was clean thanks fam...but it would be nice to extend it towards getting the user object too
@nwekemaxwell6595
@nwekemaxwell6595 Жыл бұрын
yess!!! it worked you're a saver😁❤️❤️❤️ got stuck trying out the doc guide... been 2days... thanks 👍
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Glad I could help. I was stuck on the docs for a minute too!
@notleai
@notleai Жыл бұрын
awesome tutorial bro
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you!
@arokoyuolaniyi3103
@arokoyuolaniyi3103 11 ай бұрын
Thanks for simplifying
@Harmansingh-i9b5k
@Harmansingh-i9b5k 10 ай бұрын
great video!!
@brettwestwooddeveloper
@brettwestwooddeveloper 10 ай бұрын
Thank you!
@brendansullivan4872
@brendansullivan4872 2 ай бұрын
If you put those in a .env file a nice way to get hacked is to look in your build folder an retrieve it from inspect menu.
@brettwestwooddeveloper
@brettwestwooddeveloper 2 ай бұрын
Curious, so you are saying somebody can hack a .env file?
@brendansullivan4872
@brendansullivan4872 2 ай бұрын
It blew my mind when I saw it but while at work what happened was a friend of mine goes into the build (sources I believe) and you can see the values directly in there because it gets injected when you build. The good news is the config file for firebase with the api key measurement etc is meant to be public facing. Not very usable for the hacker since you set the rules on the backend for Firestore and the real-time db etc. what you want to add though is app check. That buries any hacker trying to pull some shit because you can put recaptcha v3 where it’s automatic. When you do this you can choose any firebase add on to be enforced with it and they are blocked.
@inchristtvke
@inchristtvke Жыл бұрын
Much appreicated man. I was trying to set this up for my org and most people are overlooking a thing or 2 cause it always causes problems.
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
No problem! Glad to hear I was able to help you guys out there!
@sahillalani2
@sahillalani2 Жыл бұрын
would it be possible to do this with a V3 chrome extension as well that's coded in vanilla JS?
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I don't use Firebase much anymore
@HosseinKalbasi
@HosseinKalbasi 3 ай бұрын
wouldn't having the config secrets directly in the React app put security at risk? As it's Javascript and might be accessible in the UI. Is it possible to do the token generation on the backend? similar to when we do email/password login
@brettwestwooddeveloper
@brettwestwooddeveloper 2 ай бұрын
Yes you should have the config secrets in an .env file. Yes ideally you should do the token generation on the backend.
@abhaygohel298
@abhaygohel298 10 ай бұрын
If i use mobile than it is not woking.
@Ravisingh21able
@Ravisingh21able 10 ай бұрын
can't believe you just clicked on "zoom-in" from the menu bar instead of using the keyboard shortcut, TWICE !!
@brettwestwooddeveloper
@brettwestwooddeveloper 10 ай бұрын
I am a noob
@daubouin4ever
@daubouin4ever 3 ай бұрын
thx
@brettwestwooddeveloper
@brettwestwooddeveloper 3 ай бұрын
No problem!
@user-vm7xx3wi8cbz
@user-vm7xx3wi8cbz 9 ай бұрын
Do you need to do anything in Google Console as a prerequisite to this? The steps you follow when you want to buildin Google Sign In I mean..
@brettwestwooddeveloper
@brettwestwooddeveloper 9 ай бұрын
Just need a google account, so if you have a gmail you will be fine
@frenchmike
@frenchmike Жыл бұрын
bro that was good, if you make a follow up on showing the user on the front end, plus signing off plus using a db with it, let me know
@tonybenci2796
@tonybenci2796 Жыл бұрын
Hi Brett. I wonder whether you've seen this issue? I have already gotten the Firebase/google working and all of a sudden it is throwing CORS warnings in the browser. I am working in React and NextJS and I have the same issue. Any ideas on this? Did you see any in your console for this application? Cheers Tony
@SamIliya
@SamIliya Жыл бұрын
nice bruh
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you
@nwekemaxwell6595
@nwekemaxwell6595 Жыл бұрын
would be nice if you add a follow up on how to get the users object too🥺🥺
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
will do
@Nilesh-h6k
@Nilesh-h6k Жыл бұрын
Do you know how to do the same with python fastapi?
@TheSEGFam
@TheSEGFam Жыл бұрын
Could you do a form collecting name etc to fire store and upload image for like a profile page? I'm stuck
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
yes I can
@TheSEGFam
@TheSEGFam Жыл бұрын
@@brettwestwooddeveloper that would be amazing. So what iv ran into is I have a form, with "upload profile picture" and (just for example) a realitor has a listing they want to highlight so a "product highlight" photo which I needs to go to FBstorage, then on the same form I have the basics name, email, etc that needs to go to fire store I CAN NOT get it to work.
@tanksalif
@tanksalif Жыл бұрын
Thank you much G!
@odogwu-1918
@odogwu-1918 Жыл бұрын
You have a very nice content here,
@odogwu-1918
@odogwu-1918 Жыл бұрын
I want to also add that when you create content like this one you should actually create video for other problem people might encounter after they have done this. For example (now I am done with the google authentication, the next problem now is how do I know a user have signed in or signed out) its been three weeks judging from the time I am seeing on youtube this other solution should be out by now. Yeah it is your channel, but stuffs like this is what makes people to subscribe and wait for your contents
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
Thank you very much!
@brettwestwooddeveloper
@brettwestwooddeveloper Жыл бұрын
I can definitely make a video on this topic
@odogwu-1918
@odogwu-1918 Жыл бұрын
@@brettwestwooddeveloper You are welcomed
@mullla1ya
@mullla1ya 3 ай бұрын
I feel so dumb with this: error loading dynamically imported module
Setting Up Firebase Auth with React: Step-by-Step Tutorial
17:28
Code Radiance
Рет қаралды 68 М.
NodeJS & Express - Google OAuth2 using PassportJS
20:33
Kris Foster
Рет қаралды 107 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 29 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 55 МЛН
React Google Authentication - Firebase Authentication Tutorial
20:23
Firebase Authentication in Expo: Complete Guide for Email & Google Sign-In
14:23
What is Firebase Authentication?
13:22
Firebase
Рет қаралды 27 М.
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 95 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 191 М.
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 598 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 29 МЛН