GoogleAdapter

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.
  • access_token: The Google access token.

Auth Payload

Example Auth Data Payload

{
  "google": {
    "id": "1234567",
    "id_token": "xxxxx.yyyyy.zzzzz",
    "access_token": "abc123def456ghi789"
  }
}

Notes

  • Ensure your Google Client ID is configured properly in the Parse Server configuration.
  • The id_token and access_token are validated against Google's authentication services.
Parameters:
NameTypeDescription
optionsObject

The adapter configuration options.

Properties
NameTypeDescription
clientIdstring

Your Google application Client ID. Required for authentication.