
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
vue3-recaptcha2
Advanced tools
Vue v3 component for Google reCAPTCHA v2
npm install vue3-recaptcha2
<template>
<vue-recaptcha v-show="showRecaptcha" sitekey="key"
size="normal"
theme="light"
hl="tr"
:loading-timeout="loadingTimeout"
@verify="recaptchaVerified"
@expire="recaptchaExpired"
@fail="recaptchaFailed"
@error="recaptchaError"
ref="vueRecaptcha">
</vue-recaptcha>
</template>
<script>
import vueRecaptcha from 'vue3-recaptcha2';
export default {
name: 'app',
components: {
vueRecaptcha
},
data() {
return {
showRecaptcha: false,
loadingTimeout: 30000 // 30 seconds
}
},
methods: {
recaptchaVerified(response) {
},
recaptchaExpired() {
this.$refs.vueRecaptcha.reset();
},
recaptchaFailed() {
},
recaptchaError(reason) {
}
}
};
</script>
<div id="app">
<button v-on:click="toggle">Show</button>
<vue-recaptcha v-if="show" :sitekey="recaptchaSiteKey" v-on:verify="recaptchaUpdated" hl="ru"></vue-recaptcha>
</div>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue3-recaptcha2"></script>
<script>
const app = Vue.createApp({
name: "app",
components: {
VueRecaptcha
},
data() {
return {
show: false,
recaptcha: null,
recaptchaSiteKey: 'key'
}
},
methods: {
toggle() {
this.show = !this.show;
},
recaptchaUpdated(recaptcha) {
this.recaptcha = recaptcha;
}
}
});
app.mount("#app");
</script>
FAQs
Vue v3 component for Google reCAPTCHA v2
The npm package vue3-recaptcha2 receives a total of 6,377 weekly downloads. As such, vue3-recaptcha2 popularity was classified as popular.
We found that vue3-recaptcha2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.