Authentication Required (default): The login dialog appears automatically when PlaytoliaGameObject 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.
bool loggedIn = PlaytoliaAuth.IsLoggedIn();string token = PlaytoliaAuth.GetAccessToken(); // empty string if not logged inAuthState state = PlaytoliaAuth.GetState(); // null if not logged in
Tokens refresh automatically in the background. You don’t need to handle expiry manually.