Link player accounts

Learn how to link player accounts to the web shop

After extracting the code challenge from a deep link, you can use it to send information about the player to Stash and complete the linking process.

The linking process varies based on the authentication provider you use. However, Stash’s Unity package contains a StashClient class with separate linking methods for the most popular authentication providers.

Account provider overview

ProviderRequired ParametersGuideAPI Reference
Apple Game CenterSignature, teamPlayerId,
publicKeyURL, salt, timestamp
Apple Game Center Link Apple Game Center
Apple IDIdToken (JWT), clientIdApple IDGeneric link using JWT standard
Custom ProviderIdToken (JWT)Generic link using JWT standard
Facebook / MetaIdToken (JWT)Generic link using JWT standard
Google accountsIdToken (JWT)Google accountsGeneric link using JWT standard
Google Play GamesAuthCodeGoogle Play Games Link Google Play
Unity Player AccountsIdToken (JWT)Generic link using JWT standard