Current section: Logout 6 exercises

Transforming a Logout Link into a Secure Logout Form

Loading exercise


00:00 Your job in this exercise is to make this logout button work. So right now it's just a form that doesn't do anything. You need to change it to a form that posts to slash logout because we want to do a post for this type of a mutation, not a get.

00:14 So it's very common for applications to just have like a route that you have a link and it links them to the logout route and that will log them out. No, you want to do a post because that is better for security for various reasons. So that is your job in this exercise. We'll see you when you're done.