new GoogleAdapter(options)
Parse Server Configuration
To configure Parse Server for Google authentication, use the following structure:
{
"auth": {
"google": {
"clientId": "your-client-id"
}
}
}
The adapter requires the following authData fields:
- id: The Google user ID.
- id_token: The Google ID token.
Auth Payload
Example Auth Data Payload
{
"google": {
"id": "1234567",
"id_token": "xxxxx.yyyyy.zzzzz"
}
}
Notes
- Ensure your Google Client ID is configured properly in the Parse Server configuration.
- The
id_tokenis validated against Google's authentication services.
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | The adapter configuration options. Properties
|
