Describe the bug
When generating a Hilla application using --auth flag, it adds an unnecessary requiresLogin: true in the routes.tsx for the LoginView as well.
Although, the requiresLogin: true is a sort of meta-data for the router and does not affect the functionality (the login form is being displayed properly), it is not needed and causes confusions for the users.
To Reproduce
Steps to reproduce the behavior:
Use npx @hilla/cli init --react --auth hilla-with-auth to create a Hilla app with security
Open frontend/routes.tsx
Locate the path /login in the list of routes
Expected behavior
The /login path should not contain requiresLogin: true.
Describe the bug When generating a Hilla application using
--auth
flag, it adds an unnecessaryrequiresLogin: true
in theroutes.tsx
for theLoginView
as well.Although, the
requiresLogin: true
is a sort of meta-data for the router and does not affect the functionality (the login form is being displayed properly), it is not needed and causes confusions for the users.To Reproduce Steps to reproduce the behavior:
npx @hilla/cli init --react --auth hilla-with-auth
to create a Hilla app with securityfrontend/routes.tsx
/login
in the list of routesExpected behavior The
/login
path should not containrequiresLogin: true
.