Merge pull request #47 from sussy-code/turnstile

Turnstile
This commit is contained in:
Captain Jack Sparrow 2024-06-09 16:41:57 -04:00 committed by GitHub
commit 58d5da33a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ export async function getTurnstileToken() {
const turnstile = getTurnstile(); const turnstile = getTurnstile();
try { try {
const token = await useTurnstileStore.getState().getToken(); const token = await useTurnstileStore.getState().getToken();
reportCaptchaSolve(true); reportCaptchaSolve(true);
return token; return token;
} catch (err) { } catch (err) {
@ -103,7 +104,7 @@ export function TurnstileProvider(props: {
<Turnstile <Turnstile
siteKey={siteKey} siteKey={siteKey}
options={{ options={{
refreshExpired: "auto", refreshExpired: "never",
theme: "light", theme: "light",
}} }}
onWidgetLoad={(widgetId) => { onWidgetLoad={(widgetId) => {