This section contains the steps to integrate the Shield Module. The next section contains the Validate session token API reference and code samples to validate the session token.
You can generate a secure sessionToken
on-demand by calling the Shield Module API.
To get the session token, launch a new intent to start the BlueStacks App player Shield Module and set up a callback to receive the session token.
You can use the following code in your app to get the session token as and when required:
Note: The sessionToken
must be sent to your game backend immediately (session token expires after 5 minutes), which will validate it with the Bluestacks backend.
The next step is to send this session token to your game backend server for validation. Your backend server will then validate this session token with the BlueStacks backend, as illustrated in the next step.
The next step is to validate the session token. Use the Validate Session Token API at your game backend to verify the token from BlueStacks backend.
Note: You can get the secret_api_key
(Shield API Key) by following the steps mentioned here.
In the final step, your game backend will receive the response of session token validation from the BlueStacks backend. You can handle this response in your game client as per your requirement.
The following is the expected response:
is_verified
is True – the game should continue as the session token is verified.is_verified
is False – the game should not be allowed to continue, as:
문서 Rev. 1.0