I have an application with a login screen, fairly typical scenario I guess. After the user gets authenticated, I need to store him somehow because I will then have to act based on his permissions etc. Of course there will be more properties to store as well..
What is considered the best
way of achieving this? I'm currently evaluating two options:
1.) use a singleton (or a static property) and reference that in my viewmodels
2.) use App.Current.Properties
and store it there. Then maybe use some static helper method to retrieve the user more easily and consistently throughout the app
Or maybe is there any other option to consider? Thank you for suggestions.