Any ideas, guidance and pointers to design a dagger (Hilt) graph in such a way that logged in (authenticated) users can only navigate to certain destinations and once the user logs out, we can navigate them to a destination which is part of un-authenticated nav graph etc. The goal is to ensure, all data in the Singleton's is also cleared along with db / shared pref. Any other ideas to achieve same are also welcome.
My work project is using navigation-compose and hilt library and am looking for suggestions and ideas thanks!