We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3b2332 commit 6b577c5Copy full SHA for 6b577c5
libs/helpers/turnstile-script.ts
@@ -26,6 +26,9 @@ export function getTurnstileScript(turnstileSiteKey: string) {
26
theme: 'dark',
27
callback: async function(token) {
28
try {
29
+ const authorized = window.ui.authSelectors.authorized().size > 0;
30
+ if (authorized) return;
31
+
32
const res = await fetch('/v1/auth/turnstile', {
33
method: 'POST',
34
body: JSON.stringify({ token }),
0 commit comments