I'm looking for the best solution to store access and refresh JWT tokens (in Unity Android mobile app), which I receive from server. I can save it in a player prefs, asset bundles or smartphone memory, but which solution will be safer?
I'm looking for the best solution to store access and refresh JWT tokens (in Unity Android mobile app), which I receive from server. I can save it in a player prefs, asset bundles or smartphone memory, but which solution will be safer?
PlayerPrefs is solution you are looking for.
It is kind of generic solution for iOS and Android and it is alternative to SharedPreferences in Android and Keychain in iOS. If you need encryption then you can implement a wrapper which will encrypt on saving and decrypt on loading.