Skip to content

Commit 6a25ada

Browse files
Added documentation for hiding recaptcha
1 parent 7cfbaed commit 6a25ada

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,26 @@ render(
181181
);
182182
```
183183

184+
#### Hiding the Recaptcha
185+
186+
According to the [google docs](https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed) you are allowed to hide the badge as long as you include the reCAPTCHA branding visibly in the user flow. Please include the following text:
187+
188+
```
189+
This site is protected by reCAPTCHA and the Google
190+
<a href="https://policies.google.com/privacy">Privacy Policy</a> and
191+
<a href="https://policies.google.com/terms">Terms of Service</a> apply.
192+
```
193+
194+
If you wish to hide the badge you must add:
195+
196+
```
197+
.grecaptcha-badge { visibility: hidden; }
198+
199+
```
200+
201+
to your css.
202+
203+
184204
## Migrate to 2.0
185205

186206
- __options.removeOnUnmount__: *REMOVED* This was only useful for the lang changes. Lang is now changed through the `hl` prop.

0 commit comments

Comments
 (0)