For the full step-by-step flow, see About Game Redirect Login. Learn more about the Player Authentication feature. With the Player Authentication API service, you can:
- Get notified when to authenticate players.
- Get notified when to initiate an authentication session in your game.
Before you begin
Review the following before you begin:- Make sure you’ve completed the Player Authentication setup in the Publisher Dashboard.
- Authenticate Player Callback:
- The
tokenfield varies by login method:- SSO Login: Token returned by the SSO provider.
- Player ID Login: Player ID entered by the player.
- For both Pre-Authenticated Login and Game Redirect Login, Appcharge sends
authMethod: "otp"and includes anotpobject:- Pre-Authenticated Login: Appcharge extracts the player code and access token from your game’s deeplink and forwards them to your Authenticate Player Callback.
- Game Redirect Login: Appcharge first calls the Initiate Game Auth Callback on your server to start the flow. Your game responds with the player code and token through the return URL, and Appcharge forwards them to your Authenticate Player Callback. To enable Game Redirect Login, follow Set up Game Redirect Login.
- The
