Redirection After Creating an Account
In this lesson, we'll learn how to redirect the user after they've signed up.
We'll cover the following...
Where do we go from here? There are a couple of things that we need to take care of.
- Redirect the user after they’ve created an account because Firebase authenticates them.
- Handle a scenario in which Firebase throws an error.
We’ll take care of the first scenario in which the user successfully created an account. Let’s redirect them to a page that only authenticated users should be able to view.
New route
We’ll need to create a new component to display the secret content. In the command line, ...