From the course: Firebase Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating new users from Oauth, part 1 - Google Cloud Tutorial
From the course: Firebase Essential Training
Creating new users from Oauth, part 1
- [Instructor] Okay, now that we have our project set up with an OAuth provider, we need to actually integrate OAuth into our front end app. And then we'll create our Firebase function that listens for new OAuth signups and creates a new user document accordingly in our Firestore. Something to note here is that with OAuth, we won't need to confirm the user's email since the very fact that they're using OAuth to sign in, means that their email has been confirmed already. So anyway, we're going to start off the flow here by creating a new file in our auth directory for our front end called signInWithGoogle. And this is going to be a wrapper function that will allow us to sign in with OAuth through Firebase. So inside this file, we're going to say import firebase from firebase slash app and then we'll say export const, signInWithGoogle and it's going to be async function that doesn't take any arguments. And the code for…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.