Is this a good method to secure routes? - SolidJS