Merge pull request #45 from vikas5914/turnstile

Disable auto refresh.
This commit is contained in:
Captain Jack Sparrow 2024-06-09 16:38:06 -04:00 committed by GitHub
commit 224fd5b9fe
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();
try {
const token = await useTurnstileStore.getState().getToken();
reportCaptchaSolve(true);
return token;
} catch (err) {
@ -103,7 +104,7 @@ export function TurnstileProvider(props: {
<Turnstile
siteKey={siteKey}
options={{
refreshExpired: "auto",
refreshExpired: "never",
theme: "light",
}}
onWidgetLoad={(widgetId) => {