Skip to content

Player Profile

The Y8 SDK allows your game to open the authenticated player's Y8 profile.

Authentication required

Opening a player profile requires the player to be authenticated.


Open Profile

Open the current player's Y8 profile.

y8Sdk.openProfile()
    .catch((error) => {
        console.error(error);
    });

The SDK opens the player's Y8 profile in a new browser tab.

await Y8.Instance.OpenProfileAsync();

If the player is not authenticated, the profile cannot be opened.

openProfile → On clicked
            → Call openProfile

openProfile openProfile

The C3 integration handles opening the player's Y8 profile.

Y8.openProfile();

If the player is not authenticated, the profile cannot be opened.


Best Practices

  • Ensure the player is authenticated before opening their profile.
  • Handle errors appropriately for your engine.
  • Use profile buttons, account menus, or social navigation to provide access to the player's profile.