new GooglePlayGamesServicesAdapter(options)
Parse Server Configuration
To configure Parse Server for Google Play Games Services authentication, use the following structure:
{
"auth": {
"gpgames": {
"clientId": "your-client-id",
"clientSecret": "your-client-secret"
}
}
}
Insecure Configuration (Not Recommended)
{
"auth": {
"gpgames": {
"enableInsecureAuth": true
}
}
}
The adapter requires the following authData
fields:
- Secure Authentication:
code
,redirect_uri
. - Insecure Authentication (Not Recommended):
id
,access_token
.
Auth Payloads
Secure Authentication Payload
{
"gpgames": {
"code": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"redirect_uri": "https://example.com/callback"
}
}
Insecure Authentication Payload (Not Recommended)
{
"gpgames": {
"id": "123456789",
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
Notes
enableInsecureAuth
is not recommended and may be removed in future versions. Use secure authentication withcode
andredirect_uri
.- Secure authentication exchanges the
code
provided by the client for an access token using Google Play Games Services' OAuth API.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | The adapter configuration options. Properties
|