Documentation

Support

Authentication

PlayerPrefs

Understand how Unity Authentication uses player preferences to securely store authentication tokens.
Read time 1 minuteLast updated 15 hours ago

After logging in, the session token is saved in
PlayerPrefs
, a class that stores Player preferences between game sessions. It can store
string
,
float
and
integer
values into the player's platform registry.
Unity uses the following key format to isolate the tokens:
$CloudProjectId.$Profile.unity.services.authentication.session_token
.
The location depends on the platform. See the PlayerPrefs script reference documentation for more details.