Manage session tokens

When a player signs in using a session token, the token used will be invalidated. A new token will be created and stored in PlayerPrefs. This session token can be used to authorize the player in the future using either anonymous or session login.

To create a new anonymous account, either clear the player's cached session token by using AuthenticationService.Instance.ClearSessionToken() or use a different profile. Clearing the session token deletes it from PlayerPrefs.

Note: An anonymous account can be lost forever when clearing the session token if it has no linked platform account.

To verify if a session token is currently cached for the current profile, use AuthenticationService.Instance.SessionTokenExists