Player sign-in for webshops
Understand how players are authenticated for a webshop and how sign-in links a persistent Unity Player Account to the player identity your game already uses.
Read time 2 minutesLast updated a day ago
Every player must be authenticated before they can buy from a webshop. Authentication connects each purchase to the same player identity your game uses. Webshops use authentication and sign-in for different purposes:
- Authentication identifies the player who makes the purchase. When a player opens the webshop from your game, the game passes the player’s session to the shop. The player is authenticated automatically and doesn’t need to sign in.
- Sign-in lets an authenticated player link a persistent Unity Player Account, such as Google, Apple, or email, to their existing player identity. Signing in doesn’t change the player identity. It adds a durable account to that identity.
Player authentication
When a player opens the webshop from the game, the game authenticates them automatically by passing the player’s session to the shop. The player doesn’t need to sign in. If a player opens the webshop directly from a browser, bookmark, or shared link, the shop has no game session to authenticate them. The shop shows an unauthenticated landing page and prompts the player to open the shop from the game instead. For more information, refer to Open a webshop from your game.Sign-in methods
When sign-in is available, webshops use Unity Player Accounts. Players can sign in with one of the following methods:- A Google account.
- An Apple account.
- An email address verified by a one-time code.