No video

Firebase Auth Tutorial #17 - Intro to Custom Claims

  Рет қаралды 74,931

Net Ninja

Net Ninja

5 жыл бұрын

Hey gang, in this Firebase auth tutorial I'll give you a quick introduction as to what custom claims are and how we'll be setting them up.
VUE & FIREBASE FULL COURSE - www.udemy.com/...
----------------------------------------
🐱‍💻 🐱‍💻 Course Links:
+ Course files - github.com/iam...
+ VS Code editor - code.visualstu...
+ Firestore Playlist - • Firebase Firestore Tut...
+ Materialize Playlist - • Materialize Tutorial #...
🤑🤑 Donate
+ www.paypal.me/...
🎓🎓 Find me on Udemy
+ www.udemy.com/...

Пікірлер: 61
@Cho1279624
@Cho1279624 5 жыл бұрын
Finally, we need the 'cloud function.' I will follow you one step at a time. Thank you for this awesome series!!!
@shrestha0144
@shrestha0144 4 жыл бұрын
if you're having problems running firebase init functions......use cmd,powershell on vscode has some issues and if its your first time,use firebase login first: step 1> win key + R > type cmd > hit enter step 2> step 3> firebase login step 4> firebase init functions hope that helped
@Accou25
@Accou25 4 жыл бұрын
thx
@MichaelThinschmidt
@MichaelThinschmidt 3 жыл бұрын
For Windows users. If you don't install as global(-g)) you will have no problem with ExecutionPolicy . Just install: npm install firebase-tools Step 2 : firebase login Step 3: firebase init functions And thanks net ninja for the amazing tutorial!
@kierrboy8613
@kierrboy8613 3 жыл бұрын
thanks!
@tahianaraolona4333
@tahianaraolona4333 4 жыл бұрын
Just in case it can help others, do no forget to type "firebase login" if iit sis the first time you use firebase cli in your system
@wayne_gakuo
@wayne_gakuo 4 жыл бұрын
This was helpful. Didn't think about this at first since I had signed in with a different account from before
@thepassionatecoder5404
@thepassionatecoder5404 4 жыл бұрын
thanx dude u saved potential waste of time i'd have done
@Chammpion
@Chammpion 4 жыл бұрын
I had to do a '>firebase logout', then '>firebase login' to get the SDK sync'd up.
@krishbajaj1187
@krishbajaj1187 4 жыл бұрын
This was so so helpful
@hootmx198
@hootmx198 3 жыл бұрын
@@Chammpion you're a legend thanks man
@hojdog
@hojdog 5 жыл бұрын
Thank you! I've been trying to figure this out but everyone online says to add an admin field to your user doc on the database, which seems so impractical. That way isn't practical because your security rules would have to become granular and overly complicated. I don't know why these custom claims are not well known of. Thanks again this is what I was hoping this series would show me.
@achintyaagrawal
@achintyaagrawal 3 жыл бұрын
In 2021, the cloud functions are not free with the spark plan. Is there a work-around for this
@theSavanahDev
@theSavanahDev 5 жыл бұрын
Hey Ninja? I am loving this series and I think if you make another just about Firebase Functions it will be very helpful to me and lots of other people. Thank you.
@godhandinfamous
@godhandinfamous 5 жыл бұрын
Long Live the Ninja! Learning Firebase Rasengan
@entrepreneerit4490
@entrepreneerit4490 4 жыл бұрын
Thanks!! I struggled with how to use tokens until this video. You seriously have helped me so much. Such a great teacher
@HammadKhanYT
@HammadKhanYT 3 жыл бұрын
If you are having trouble with 'firebase init functions', you may be logged in under a different user name while project may be under a different user name (multiple accounts). To fix that issue, 'firebase logout' and then run. On mac/linux you might have to use SUDO command.
@tooneysbeatbox5491
@tooneysbeatbox5491 Жыл бұрын
Hey man, saved my day, thanks !
@FlexUtility
@FlexUtility 3 жыл бұрын
This was great, thanks. I wish Google would explain it simply like this in their documentation.
@emreaka3965
@emreaka3965 2 жыл бұрын
This playlist is great. Thanks for sharing.
@NetNinja
@NetNinja 2 жыл бұрын
Glad you like it! Thanks Emre
@user-to1nj5oy8r
@user-to1nj5oy8r 4 жыл бұрын
Best firebase course ever !
@alitaa1154
@alitaa1154 2 жыл бұрын
on firebase 9 you have to login to the cli first , and if you are using yarn the process will be a bit different than npm , with yarn you need to run the command ( yarn global add firebase-tools ) then you have to login by typing (yarn firebase login ) after this you will be able to run the command ( yarn firebase init functions ) , thanks.
@webLinguistic
@webLinguistic 11 ай бұрын
npm install -g firebase-tools... saved my day on windows.
@melorenzo1278
@melorenzo1278 3 жыл бұрын
These tutorials are really good.
@adamfarmer7665
@adamfarmer7665 2 жыл бұрын
Just what I needed, thank you!
@mohammadyunus2059
@mohammadyunus2059 3 жыл бұрын
How can I avoid the error of deployment of cloud functions of firebase in node engine 10 which requires creating billing account with credit or debit card that I currently don't have. I have also tried to deploy Cloud Functions in node 8. It adds the function to the console but displays that node.js 8 has been deprecated. If this is the case, how can I sort this issue out?
@lazymacs2823
@lazymacs2823 3 жыл бұрын
ff
@polypus74
@polypus74 5 жыл бұрын
Awesome, timely, and yes going swimingly :)
@IshanFarooq20
@IshanFarooq20 5 жыл бұрын
Awesome playlist! Waiting for the cloud functions series! Any timeframe when it'll be available?
@IcyIndia
@IcyIndia 3 жыл бұрын
any issue with :-- firebase init functions ; Follow it... 1. Run Window PowerShell as administrator. Use command... Set-ExecutionPolicy RemoteSigned select yes to ENABLE, Notice :- Don't forget to follow step 3. 2. go to your project then use these 2 commands .... function login firebase init functions 3. finally Go to Administrator powerShell use run command..... Set-ExecutionPolicy Restricted select yes to DiSABLE . ------------------------ It may help you -------------------------
@shakruddinpathan
@shakruddinpathan 5 жыл бұрын
Hey ninja how to upload images in the firebase
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 5 жыл бұрын
Thank u for this awesome video and series
@anatoly.ryabchenko
@anatoly.ryabchenko 4 жыл бұрын
I got a few problems with this part of a tutorial on my mac. When trying to install a firebase-tools package, I got the message saying "Missing write access to /usr/local/lib/node_modules". The problem was solved by going to that folder and allowing write/read access to everyone, both for node-modules and npm folders (get info -> sharing&permissions -> set "Read and Write" privilege to everyone). Then I had a problem trying to initialize functions. It turns out, that you need to login first and then initialize functions (write "firebase login" in the terminal without quotes). Hope it will be helpful for some of you! :)
@juanfperez
@juanfperez 5 жыл бұрын
How do you restrict data that the user inputs so that only the user who created it can view it?
@lazymacs2823
@lazymacs2823 3 жыл бұрын
Is there any alternative for custom claims? I'm having a hard time to implement user roles in firestore.
@tomascarignano5002
@tomascarignano5002 2 жыл бұрын
Thank you!!!
@GamesBrainedPlays
@GamesBrainedPlays 4 жыл бұрын
To anyone who is facing "Error: Failed to list Firebase projects. See firebase-debug.log for more info.". First, check whether you are logged in using "firebase login". If the error is persistent, logout and login again using "firebase logout && firebase login", and then try "firebase init functions" again.
@n7pankake236
@n7pankake236 2 жыл бұрын
Do you have an updated version of this by any chance ?
@mahinhossen4251
@mahinhossen4251 3 жыл бұрын
for those having issues: You can download nodejs(LTS is safe) from nodejs.org/en/download/ and just install it. Note: For win10 home users,you might not be able to run those command from vscode. To fix this, you can delete "firebase.ps1" from local/roaming directory and run command "npm cache clean --force" from cmd. After that it should work from vscode command
@RajaKumarVanukuru
@RajaKumarVanukuru 4 жыл бұрын
when i run the commands as administrator in powershell then only they are working why ?
@yadude101
@yadude101 3 жыл бұрын
i cannot run: npm install firebase-tools -g I get the error, Error: EACCES: permission denied, access '/usr/local/lib/node_modules' does this mean I should put, sudo npm install firebase-tools -g ??
@yadude101
@yadude101 3 жыл бұрын
-I ended up running yarn global add firebase-tools -this installed firebase-tools -Then i put firebase init functions -got an error Failed to authenticate, have you run firebase login? -so I ran firebase login --no-localhost -it responded with ? Allow Firebase to collect CLI usage and error reporting information? Yes
@ayza6488
@ayza6488 4 жыл бұрын
First thank you for all your tutorial video you have a special way of explaining the concepts that I really like. I have a question why we can't add a field on the users collection in Firestore, for example isAdmin: true or false instead of using custom claims.
@mihirlakhamje9575
@mihirlakhamje9575 7 ай бұрын
you can do that too. there are many ways to Authorize the user 1) by security rules: you can add role in user collection and setup a rules for that 2) by custom claims: add custom claims in jwt token. you can easily fetch the Authorized user 3) by session cookies create a cookie for a verified token and good to go. All these methods can also implement through firebase-admin sdk you can implement all these methods in one app, it will be highly secured app❤ ~Happy coding
@MurrTuck
@MurrTuck 5 жыл бұрын
Love your work as always. How would I go about utilizing the .gitignore file? For example, placing my sensitive information from firebase that is in my index.html into like a .env file and the calling upon that file to render on the index.html? That way nothing is being uploaded to github and could be potentially harmful to my data.
@sqwrl5424
@sqwrl5424 3 жыл бұрын
Shaun, wish id found you you 2 years ago...your tutorials are ace.. . anyway this lesson: after, i firebase-Tools if its your fist time, like other said you need to run, firebase login. I had this error and this is the fix: "Error: An unexpected error has occured. There is no chance to paste the code ...Please do the neeful add a PATH variable C:\Windows\System32 " ?reset? run: firebase login let google take over for a bit... buy Shaun a beer HTH someone
@fayzsabir7623
@fayzsabir7623 5 жыл бұрын
Heeeey Ninja i have a question, the site is static or dynamic when we work just with firebase and no server side language or framwork is it enough if make a website just with firebase
@BenHayat
@BenHayat 5 жыл бұрын
Hey Shaun, are you planning to make a KZbin series or Udemy course on Cloud functions and Vue? Please to-the-power-of 100 :-)
@moinakhter2474
@moinakhter2474 5 жыл бұрын
Great but why we install firebase-tool globally what is the advantage plz reply
@deejayerick
@deejayerick 5 жыл бұрын
Thanks good
@eazlai
@eazlai 4 жыл бұрын
very cool
@marcetech515
@marcetech515 4 жыл бұрын
Hey... sorry to bother. Does anyone used custom claims with react? Can anyone lend me a hand with it?
@amyra98
@amyra98 3 жыл бұрын
npm install firebase-tools -g firebase init functions
@ericwilliam1697
@ericwilliam1697 5 жыл бұрын
Shaun, is it possible to increase the screen resolution on the udemy courses? The previews are in 720px max.
@Atwahira
@Atwahira 5 жыл бұрын
firebase init command doesn't work. it says command not found. what do i do?
4 жыл бұрын
yeap I'm in the same problem, npm or firebase not recognized, I guess we are not in the right folder, but dunno which is the right one
4 жыл бұрын
mate, you have to install node.js and then add it to your path ;)
4 жыл бұрын
here mate: github.com/firebase/firebase-tools/issues/46
Firebase Auth Tutorial #18 - Cloud Function / Adding Claims
8:43
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 25 МЛН
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Алексей Щербаков разнес ВДВшников
00:47
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 59 МЛН
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 262 М.
Firestore Security Rules - How to Hack a Firebase App
10:05
Fireship
Рет қаралды 130 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 563 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 961 М.
Role-Based Authorization with Firestore
10:33
Fireship
Рет қаралды 115 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 82 М.
React User Login and Authentication with Axios
31:37
Dave Gray
Рет қаралды 555 М.
Big Tech: too big to split
7:18
CNBC Television
Рет қаралды 15 М.
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 25 МЛН