Skip to content
New issue

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

get site key after implement in vue . #256

Open
elahekaramzade opened this issue Nov 29, 2020 · 1 comment
Open

get site key after implement in vue . #256

elahekaramzade opened this issue Nov 29, 2020 · 1 comment

Comments

@elahekaramzade
Copy link

I don't have the site key at Dom, I have to send a request to the server and get the site key, is there any way to add the site key after initializing?

@castchise
Copy link

castchise commented Jan 29, 2021

Hi there!

You could try to make api call before recaptcha is loaded inside async mounted hook.

async mounted() {
 const siteKey = await your_api_call_method();
 this.recaptcha = await load(siteKey);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants