Skip to content

The open alternative to Salesforce, designed for AI.

Add logging for recaptcha token (#12834)

Charles Bochetb8fd10e9e8cf
diff --git a/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts b/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts
index cf790b97690..6b5537aa7d7 100644
--- a/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts
+++ b/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts
@@ -47,6 +47,12 @@ export const useRequestFreshCaptchaToken = () => {
action: 'submit',
})
.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);
setIsRequestingCaptchaToken(false);
});