rankrunners-cms 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/captcha/types.ts
CHANGED
package/src/captcha/use-cap.ts
CHANGED
|
@@ -236,7 +236,7 @@ export function useCaptcha(props: CapHookProps = {}): UseCaptcha {
|
|
|
236
236
|
const solvingCaptcha = solving || waitingForRetry;
|
|
237
237
|
|
|
238
238
|
const consumeCaptchaToken = useCallback(() => {
|
|
239
|
-
const currentToken = token;
|
|
239
|
+
const currentToken = token?.token ?? null;
|
|
240
240
|
reset();
|
|
241
241
|
return currentToken;
|
|
242
242
|
}, [token, reset]);
|
package/src/tanstack/captcha.ts
CHANGED