I know there are some ng captcha libraries out there. I didn't wanted just for one method call to install npm dependency. In the pure java script implementation for example onSubmit method call, when we submit the form we call this method from the google recaptcha api
recaptcha.execute(secret_key, {action: 'homepage'}).then(function(token) {
c.log('token', token);
})
but i can't find a way, how can i tell angular and typescript that this recaptcha variable is from the google api and it will execute the execute method.
Now ofcourse i get the error
recaptcha.execute is not a function
Have somoene found a way without library ?