Barba: Request: Sample code/codepens to integrate Google recaptcha V3

Created on 26 Apr 2020  路  3Comments  路  Source: barbajs/barba

Hello, thank you to make Barba available for everyone!
I would like to integrate Google recaptcha V3 inside only one page.
I'm using "views" but still doesn't show the recaptcha unless I refresh the current page.
Could you post here a correct example?

Thank you in advance!!

@barbcore question

Most helpful comment

Thank you so much guys!! 馃檹 You are the best 鉂わ笍

All 3 comments

Hi @lasagner,

It's a duplicate issue of https://github.com/barbajs/barba/issues/399.

For now, we don't have a third party code snippet or specific implementation directives for ReCaptcha v3, but I can add it to the pipe in order to have it on the documentation website.

It should work like any other third party scripts:

  • import inside your bundle or <script> inside your head/page bottom
  • call grecaptcha.execute(...) inside the appropriate hook or view

See ReCaptcha official documentation if needed: https://developers.google.com/recaptcha/docs/v3

Hi everyone,

I just add a dedicated Google ReCaptcha section inside the advanced third party scripts documentation on the Barba website.

This section may evolve in time based on Google ReCaptcha updates...

Happy reading! :wink:
Closing the issue.

Thank you so much guys!! 馃檹 You are the best 鉂わ笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

S1SYPHOS picture S1SYPHOS  路  3Comments

Mexikaner9 picture Mexikaner9  路  3Comments

EmilyChews picture EmilyChews  路  3Comments

luglio7 picture luglio7  路  4Comments

shanewmurphy picture shanewmurphy  路  3Comments