---
title: "Discussion on \"Integrate Google reCaptcha into your Nuxt.js project.\" | Hashnode"
description: "Discussion on \"Integrate Google reCaptcha into your Nuxt.js project.\". In case you want to dive straight into the code, the link to the GitHub repo of this demo can be found here.\nIntroduction\nWe've all been there. You're surfing one of your favorite sites and you fill a form. But just as you click the submit button, yo..."
url: "https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Integrate Google reCaptcha into your Nuxt.js project.](https://the-blog.hashnode.dev/integrate-google-recaptcha-into-your-nuxtjs-project?utm_source=hashnode&utm_medium=feed)

In case you want to dive straight into the code, the link to the GitHub repo of this demo can be found here. Introduction We've all been there. You're surfing one of your favorite sites and you fill a form. But just as you click the submit button, yo...

Nov 14, 2020 · 10 min read · the-blog.hashnode.dev  
Read the article

-   [#security](https://hashnode.com/tag/security)
-   [#nuxt](https://hashnode.com/tag/nuxt)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo)

@Dollapo · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Dollapo)

A Fullstack software engineer with a passion for writing. I use JavaScript, Typescript, React, Vue, Node.js, SQL and NoSQL databases.

A fullstack software engineer. I have years of experience working in the E-commerce, Educational Technology and Aviation industries. I am mostly familiar with the following tools: JavaScript, TypeScript, Vue, React, Node.js, MySQL, Postgres, MongoDB. I have also in the past, played a little with React Native, Firebase, Ruby and I am currently looking to level up my Java skills. In my free time, I enjoy music, football (soccer), table tennis, badminton and weightlifting.

## Responses 6

Markdown supported · ⌘↵ to post

[Hendi Santika](https://hashnode.com/@hendisantika)

[Jul 31, 2024](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/66a9a68fb1baa1297ebed400)

Could you please to update to latest NuxtJS version?

Thanks

[Samuel Hadsall](https://hashnode.com/@samuelhadsall)

[Feb 19, 2022](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/62113478c6ed3906e81c2b38)

Great Article, I followed this and am able to get my reCaptcha v2 checkbox to show, but any time I submit I get ReCaptcha error: Failed to execute Error: Invalid site key or not loaded in api.js

I'm passing the sitekey through my nuxt.config.js file, what am I missing here?

Thanks

[Samuel Hadsall](https://hashnode.com/@samuelhadsall)

[Feb 19, 2022](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/62113478c6ed3906e81c2b38#reply-62116752e2db563535e369b8)

Oh man! Figured it out I changed it up because I'm using v2 and not v3.

[Rail Batyrshin](https://hashnode.com/@railbatyrshin)

[Nov 24, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/619e0fb563587e7e6c9de940)

Hello, thanks for this guide, it's very helpful. But I have a question, how I can add multiple reCaptcha to the single page? I have a single (child) component, and I'm using it several times in the parent component. Thank you

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo)

[Nov 25, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/619e0fb563587e7e6c9de940#reply-619ff9fae6a8de7421324144)

Hi Rail. I'm glad you found this article useful. You can use a single recaptcha instance as many times as you want. All you need to do is to call the this.$recaptcha.reset() method after every use.

That way, the token used for the previous verification is reset.

Also, you can setup the recaptcha instance in the child component and everywhere that component is being used, you will have a new instance of it running.

Just make sure you don't forget to call the this.$recaptcha.reset() after every use. Whether it was successful or not. It's pretty important.

If this isn't clear enough, please let me know.

[Rail Batyrshin](https://hashnode.com/@railbatyrshin)

[Nov 27, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/619e0fb563587e7e6c9de940#reply-61a277c0a707ae38156d6696)

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo) Hello, thank you a lot for the answer, I'll try it :)

[Dzulfiqar Abimanyu](https://hashnode.com/@dzfiqar)

[Aug 23, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/6123d255663d427e19ff88a8)

finally....thanks, its really helpful, ur explanation is super clear

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo)

[Nov 25, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/6123d255663d427e19ff88a8#reply-619ff807e6a8de742132411e)

Thank you Dzulfiqar

[Simon Measures](https://hashnode.com/@Pastorsi)

[May 14, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/609e4e4ab684eb4cd52c610a)

I can't get this working. Nothing is happening in regard to reCaptcha. It seems the recaptcha instance isn't initializing.

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo)

[May 14, 2021](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/609e4e4ab684eb4cd52c610a#reply-609e59a047373d4cb0563345)

I'll need to see your code before I can know how to help.

[Grace Itiung](https://hashnode.com/@graceitiung)

[Nov 16, 2020](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/5fb287644d7a63560277d7c9)

Very insightful, well-done

[Abdulazeez Dolapo Abdulrafiu](https://hashnode.com/@Dollapo)

[Nov 16, 2020](https://hashnode.com/posts/integrate-google-recaptcha-into-your-nuxtjs-project/5fb06ac8c03b0e471014fab3/comment/5fb287644d7a63560277d7c9#reply-5fb28e104d7a63560277d836)

Thank You, Grace.
