Transcript
00:00 I'm so excited because in this exercise, we're finally going to make this login with GitHub thing do what it says it's going to do, which is login with GitHub. We're also going to make support for create an account. If we hit sign up with GitHub, that will allow users to sign up, but we've got a new onboarding flow specifically for that.
00:19 Now, the trick here is that login already involves more than just a couple of setting a value in a cookie, because now we've got two-factor authentication to think about, and there's a fair bit of complexity for all of that stuff. Well, luckily, we're using
00:37 a programming language that has first-class support for functions, and so we're going to be able to reuse a lot of the logic that goes into our login for that login process with the third-party login. It's going to be easier than you think, I hope.
00:55 Then for onboarding, that's a little bit tricky because our onboarding flow here, our regular signup flow involves first verifying the user's e-mail. Well, with GitHub, the user is required to verify an e-mail anyway, and so the remix auth GitHub package
01:13 will only give us e-mail addresses that are verified, and so we don't need to worry about verifying the user's e-mail. We're going to have a slightly different onboarding flow, not anything that you haven't already done with the Conform stuff before, and so Kelly, the co-worker, has built that for us, and we're just going to be making a couple of alterations to
01:33 enhance it so that we can get the onboarding stuff going. But one cool thing about this too is that third-party auth providers often will provide you with an image URL or a profile photo, and so then you can use that to auto-populate the user's avatar so they don't have to set it up every time.
01:52 So we're going to be doing that too, which is pretty cool. I think that is everything that you need to know to get going on this one. So it's going to be fun. The login is going to be pretty quick and easy, but the onboarding is going to be a little bit more tough. So gear yourself and get ready for that,
02:09 and we'll see you in this exercise.