-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Appv2 faucet #4189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Appv2 faucet #4189
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
App 2 🤌✨ Deployment complete! Take a peek over at https://b63ffa4f.app2-9yo.pages.dev |
Idle: {} | ||
Verifying: {} | ||
Verified: { token: string } | ||
Submitting: { token: string } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify what the type of schema is of token by using one of the types from schema/
type FaucetProcessState = Data.TaggedEnum<{ | ||
Idle: {} | ||
Verifying: {} | ||
Verified: { token: string } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this mean?
const handleTurnstileError = (e: CustomEvent<{ code: string }>) => { | ||
faucetProcess.set(FaucetProcess.Failure({ error: `Verification error: ${e.detail.code}` })) | ||
showTurnstile = false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only get a code and no other data? best to always propagate all error data all the way upwards, so that we get full context in the app if there is any error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/ghostdevv/svelte-turnstile?tab=readme-ov-file#events
according to this page we only get code on error scenerio
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
Signed-off-by: Kaan Caglan <[email protected]>
9fc913c
to
6feb433
Compare
No description provided.