PlayerPrefs
Understand how Unity Authentication uses player preferences to securely store authentication tokens.
Read time 1 minuteLast updated 8 months ago
After logging in, the session token is saved in , a class that stores Player preferences between game sessions. It can store , and values into the player's platform registry.
PlayerPrefsstringfloatintegerUnity uses the following key format to isolate the tokens:
$CloudProjectId.$Profile.unity.services.authentication.session_tokenThe location depends on the platform.
See the PlayerPrefs script reference documentation for more details.