We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Would be nice to have any updates or roadmap plans for this
Sorry, something went wrong.
any update, This worked for me abinnovision/vue-recaptcha-v3#609
I've put together a simple composable using recaptcha-v3 and lazy inicialize.
recaptcha-v3
// composables/useRecaptcha.js import { load } from 'recaptcha-v3'; export const useRecaptcha = () => { let init; const recaptcha = ref(null); if (import.meta.client) { init = async(options) => { recaptcha.value = await load(useRuntimeConfig().public.recaptcha, { autoHideBadge: true, ...options, }); }; } return { init, recaptcha, }; };
Usage:
<template> <form @submit.prevent="submitForm"> <button type="submit">Submit</button </form> </template> <script setup> const { init, recaptcha } = useRecaptcha(); const submitForm = async() => { const token = await recaptcha.value?.execute('login'); alert(token); }; onMounted(() => { init(); }); </script>
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: