I am using a simplistic MVVM framework that I have created in PHP with a frontend index.php that routes all the communication (this approach works great for me).
The question I am grappling with is - where does user authentication take place in an MVVM framework? Do I implement it in the ViewModel or elsewhere? I am looking for a language agnostic answer, but even a language specific answer would do if the concept is clarified.
Thanks.