mirror of https://github.com/sussy-code/smov.git
commit
58d5da33a8
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue