Dont require score on challenge recaptcha

This commit is contained in:
Jackson Harper
2024-04-01 11:32:10 +08:00
parent 47d6f16961
commit 0fe471da82

View File

@ -8,12 +8,7 @@ type RecaptchaResponse = {
}
const isRecaptchaResponse = (data: any): data is RecaptchaResponse => {
return (
'success' in data &&
'hostname' in data &&
'score' in data &&
'action' in data
)
return 'success' in data && 'hostname' in data
}
export const verifyChallengeRecaptcha = async (