Onboarding

πŸ‘¨β€πŸ’Ό This step is going to require a little bit more work. So, when a user is not logged in, and there's no connection, we want to send them to onboarding so they can create a new account. This means we're going to need to do a few things:
  1. In , put the third party profile email into the verifySession along with the rest of the profile information and redirect to the /onboarding/github route.
  2. In the loader, get the pre-filled information from the verifySession and use it to pre-populate the onboarding form (the form was already put together by Kellie πŸ§β€β™‚οΈ so you don't have to put that together).
  3. Create a new signupWithConnection utility in that takes the onboarding information (along with the verified email and providerId) and creates a new user with a connection.
  4. Use the signupWithConnection utility in the action to create the new user and redirect to the / route.
That should have you all set.
πŸ§β€β™‚οΈ I've already changed the code in so the GitHub user is a new user without a connection, so when you click "Login with GitHub" it should take you to onboarding. If you end up creating a connection and need to test it again, update the code value to something else.

Access Denied

You must login or register for the workshop to view the diff.

Check out this video to see how the diff tab works.