Skip to content

Commit b8fd10e

Browse files
Add logging for recaptcha token (#12834)
1 parent 08f8302 commit b8fd10e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/twenty-front/src/modules/captcha/hooks/useRequestFreshCaptchaToken.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ export const useRequestFreshCaptchaToken = () => {
4747
action: 'submit',
4848
})
4949
.then((token: string) => {
50+
// TODO remove this log once debugged
51+
// eslint-disable-next-line no-console
52+
console.log(
53+
'Google Recaptcha token generated at',
54+
new Date().toISOString(),
55+
);
5056
setCaptchaToken(token);
5157
setIsRequestingCaptchaToken(false);
5258
});

0 commit comments

Comments
 (0)