# reCAPTCHA

reCAPTCHA is used to verify whether a user is human or a bot.

A service account can be created in the Google Cloud Console.
To create a service account, navigate to the "IAM & Admin" section,
select "Service Accounts," and then click "Create Service Account."
Follow the instructions to generate the necessary credentials.

## Service Account Information

- **type**: Service account type
- **project_id**: Project ID
- **private_key_id**: Private key ID
- **private_key**: Private key
- **client_email**: Client email
- **client_id**: Client ID
- **auth_uri**: Auth URI
- **token_uri**: Token URI
- **auth_provider_x509_cert_url**: Auth provider x509 cert URL
- **client_x509_cert_url**: Client x509 cert URL
- **universe_domain**: Universe domain

## Site Key

- **siteKey**: reCAPTCHA site key

## Configuration Example

```javascript
module.exports = {
  recaptcha: {
    serviceAccount: {
      type: 'service_account',
      project_id: '--',
      private_key_id: '-----',
      private_key: '-----BEGIN PRIVATE KEY-----\nXXXX==\n-----END PRIVATE KEY-----\n',
      client_email: 'abc@xyz.com',
      client_id: '----',
      auth_uri: 'https://accounts.google.com/o/oauth2/auth',
      token_uri: 'https://oauth2.googleapis.com/token',
      auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs',
      client_x509_cert_url: 'https://www.googleapis.com/robot/v1/metadata/x509/abc%40xyz.com',
      universe_domain: 'googleapis.com'
    },
    siteKey: '6Ld1Dr4qAAAAAMJBYZheIOw8wQopz5NwraHAbCzt'
  }
}
```
