Sir, You are awesome! You saved me from a big struggle. Thank you so much ^_^ I would like to see more videos about Firebase and api's from you. Please keep up the good work!
Loving these firebase vids. I got a use case that I am trying to figure out: How to leverage cloud functions to send an email when inappropriate content has been posted by a user? For example, when a user posts a comment and uses vulgar language, what's the best way to leverage Firebase (I am using FireStore) to notifiy me that there is in appropriate content? Just an idea for a future video!
I would create a cloud function for the save and before you do save it, check it for vulgar words. If it contains a bad word, send the email notification. This would be a good start for your list:github.com/RobertJGabriel/Google-profanity-words/blob/master/list.txt
Great video. But it's not clear for me how to make that authentificated user could get only his own data from the db. For example - his own array of todos or smth, not the whole todos collection from firestore
Inside of the auth middleware file, on line 32, you'll see something that says req.user = decodedTokenId. Then in your firebase function, you can grab that user's id by calling req.user.uid. Use that ID to query your collection or grab a subcollection off of the user. FYI, I have not tested this, but it should work or get you close.
Thanks a lot for a great tutorial! I like that you are explaining this in a framework-agnostic way. So, when you inserted the API_KEY into Postman, it seemed that you are simulating how a client would send the request to SignUp a user or SignIn a user. However, I thought that we should not ship the API_KEY with our client code? I am asking this because I am interested in writing a CLI (either in Node.js or Ruby) that would authenticate the user to Firebase. Initially, I used the same method as you (putting the API_KEY in the code) but I realized that this is not recommended. So how do you suggest to achieve this from a CLI?
Nice job! I have been following this tutorial and I would like to know how to generate and add the jwt authentication token bearer to my node.js function folder
Great stuff, this has been so helpful! I was wondering if you can give me some pointers as to how I can combine this with creating my own Oauth2 flow. What I'd like to do is to allow my users to use 3rd party apps to access my endpoint after successfully authenticating themselves. Any tips? Thanks!
thank for this video, but how about authentication using phone number, I mean my server code using .net core and use firebase phone number authentication. I still dont know how to do, can you explain or give me key word. thank you again.
I understand why it is that you made this tutorial agnostic and it is very helpful. Quick question though. How do I generate a bearer token without first posting/creating a new user? Because as it stands (and correct me if i'm wrong) I cannot GET the users from my firebase collection by simply using the "us-central1-projectname.cloudfunctions.net/user" until I first have a bearer token yet I don't know how to generate one on my own... Any input helps here :)