Checks if the user is authenticated. Redirects them to the login page if they are not.
The locals object of RequestEvent.
The cookies object of RequestEvent.
The URL object.
void
Checks if the user is authenticated. Redirects them to the login page if they are not.