Noob question probably, trying to get the best way to handle this type of problem.
Trying to authenticate the user and then fetching his data with RestSharp such as the token, username, email etc..
What I want is to create an instance object of my class User which has the properties of token, username, email etc. and then that same object can be used everywhere, since there will only be one User object at once (only one user can log in via the app at the same time).
So in another ViewController I would want to be able to easily get the token that is saved in the Token property of the User object that I have created earlier.
Is the way I am approaching this even the right way to do it? Does xamarin give a better solution?
Thank you in advance.