mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
feat!: site refresh + dependency update
This commit is contained in:
@@ -29,9 +29,9 @@ export async function verifyTurnstile(token: string): Promise<[false, TurnstileE
|
||||
const result: TurnstileValidationResponse = await response.json();
|
||||
|
||||
if (result.success)
|
||||
return [result.success];
|
||||
return [true];
|
||||
else
|
||||
return [result.success, result["error-codes"][0]];
|
||||
return [false, result["error-codes"][0]];
|
||||
}
|
||||
|
||||
export type TurnstileValidationResponse =
|
||||
|
||||
Reference in New Issue
Block a user