This page is visible for everyone
Authorization
Authorization is a common requirement for web applications. This example shows how to implement a simple login form and
how to use use_route
to implement authorization.
The Layout
component checks if the current route requires authorization and if the user is logged in. If not, it
redirects to the login form.