Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.


Implement User Sign Out


User authentication would not be complete without a sign out feature that provides a way to let users log out of your app.

In this step, we'll write a signOut function that sets the authenticatedUser state back to null when invoked. We'll also implement a /signout route and a UserSignOut component that redirects the user to the main public page upon logging out. ...