Skip to main content
PlaytoliaSession gives the profile of the current player. PlaytoliaSession syncs automatically after a login and after each profile change.

Getting the current user

User fields: Uid, PlayerId, Username, DisplayName, Email, Avatar (URL), Lang, Location, Timezone, CreatedAt
GetUser() returns null until the player is authenticated.

Listening to session changes

Updating profile

Profile updates are fire-and-forget. A listener on the session state shows you that the SDK applied the update.

Deleting an account

App Store and Google Play both require an in-game way to delete an account. RequestAccountDeletion covers it.
Deletion is scheduled, not immediate. The account stays intact until DeletionScheduledAt, and the player cancels the deletion simply by logging in again before then. That grace period is deliberate, so the SDK does not log the player out for you: call PlaytoliaAuth.Logout() yourself, as above, and send them back to the sign-in screen.
Ask the player to confirm before you call this. A second request is refused rather than re-scheduled, so the first one stands.

Social

Friends and player search

SDK Reference

PlaytoliaSession reference