The Authentication component handles login dialogs, session state, and token management. All other components depend on a valid auth state.Documentation Index
Fetch the complete documentation index at: https://docs.playtolia.com/llms.txt
Use this file to discover all available pages before exploring further.
Login strategies
Authentication Required (default): The login dialog appears automatically whenPlaytoliaGameObject initializes. Best for games that require login from the start.
Manual: Disable “Authentication Required” in Playtolia Settings and call PromptLogin() yourself — after a tutorial, at a gated feature, etc.
Prompting login
Non-dismissable dialogs block all touch input on the game scene behind them.
Listening to auth state
Checking auth state
Tokens refresh automatically in the background. You don’t need to handle expiry manually.
Logout
Authentication providers
Enable per-provider in Playtolia Settings: Google, Facebook, Apple (required on iOS), Discord, Email/Password, Guest.Account Management
Access user profile data after login