Closed hugo-clemente closed 2 months ago
expired-callback
does actually get the current token as a parameter. Must've forgotten it in turnstile-types
, will push an update to it soon™️. See below from api.js:
Also your style override for width/height is in conflict/duplicated by the fixedSize
prop.
I've released v1.2.3 of turnstile-types which adds invisible
to size
and token
to expired-callback
Yeah sorry had a few back and forth with myself... 😅
It should be good now though, used the updated version of turnstile-types
, and fixed the issue with the fixedSized
prop
Last missing piece is an entry in HISTORY.md 🙏
Done !
Hey, First of all thanks for the work, just wanted to add the
flexible
size, but had to update theturnstile-types
. I read in the previous PR that you wanted to preserve theinvisible
option, but that makes the types inconsistent betweenreact-turnstile
andturnstile-types
so i chose to remove it.