Skip to content

Commit

Permalink
Merge pull request #45 from vikas5914/turnstile
Browse files Browse the repository at this point in the history
Disable auto refresh.
  • Loading branch information
Captain Jack Sparrow authored Jun 9, 2024
2 parents 08dcd5b + 82e9c4d commit 224fd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/turnstile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function getTurnstileToken() {
const turnstile = getTurnstile();
try {
const token = await useTurnstileStore.getState().getToken();

reportCaptchaSolve(true);
return token;
} catch (err) {
Expand All @@ -103,7 +104,7 @@ export function TurnstileProvider(props: {
<Turnstile
siteKey={siteKey}
options={{
refreshExpired: "auto",
refreshExpired: "never",
theme: "light",
}}
onWidgetLoad={(widgetId) => {
Expand Down

0 comments on commit 224fd5b

Please sign in to comment.