Add logging for recaptcha token (#12834)
This commit is contained in:
@ -47,6 +47,12 @@ export const useRequestFreshCaptchaToken = () => {
|
|||||||
action: 'submit',
|
action: 'submit',
|
||||||
})
|
})
|
||||||
.then((token: string) => {
|
.then((token: string) => {
|
||||||
|
// TODO remove this log once debugged
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(
|
||||||
|
'Google Recaptcha token generated at',
|
||||||
|
new Date().toISOString(),
|
||||||
|
);
|
||||||
setCaptchaToken(token);
|
setCaptchaToken(token);
|
||||||
setIsRequestingCaptchaToken(false);
|
setIsRequestingCaptchaToken(false);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user