So I am using Unity for my online game.
As for most of the games, When I start the app again, I want the user to be automatically logged in all the way.
What is the best practice to achieve that?
What I did is the following:
- First time registration, app saves username in PlayerPrefs.
- If app is closed then opened again, code checks for "username" info in playerPrefs.
- If info is not null, the app sends the authenticationRequest, else app shows the login screen.
Looking forward for your feedback