print full token

This commit is contained in:
Ryan Barlow
2026-02-04 20:57:54 +00:00
parent 680be03809
commit b3f96cbae5
+2 -6
View File
@@ -97,9 +97,7 @@ class TurnstileManager {
if (this.currentToken && this.isTokenValid(this.currentToken)) {
const token = this.currentToken;
this.currentToken = null; // Immediately clear to prevent reuse
console.log(
`TurnstileManager consuming cached token: ${token.token.substring(0, 10)}...`,
);
console.log(`TurnstileManager consuming cached token: ${token.token}`);
return token;
}
@@ -168,9 +166,7 @@ class TurnstileManager {
window.turnstile.execute(widgetId, {
callback: (token: string) => {
window.turnstile.remove(widgetId);
console.log(
`TurnstileManager token received: ${token.substring(0, 10)}...`,
);
console.log(`TurnstileManager token received: ${token}`);
resolve({ token, createdAt: Date.now() });
},
"error-callback": (errorCode: string) => {