From b8fd10e9e8cffd34ca08c5e589f886400f3d3a80 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Tue, 24 Jun 2025 16:12:39 +0200 Subject: [PATCH] Add logging for recaptcha token (#12834) --- .../modules/captcha/hooks/useRequestFreshCaptchaToken.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts b/packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts index cf790b976..6b5537aa7 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); });