Skip to content

feat(captcha): allow for passing appearance to options#1630

Open
travisrcory wants to merge 2 commits intoauth0:masterfrom
travisrcory:travisrcory/captcha_allow_appearence
Open

feat(captcha): allow for passing appearance to options#1630
travisrcory wants to merge 2 commits intoauth0:masterfrom
travisrcory:travisrcory/captcha_allow_appearence

Conversation

@travisrcory
Copy link
Copy Markdown

@travisrcory travisrcory commented May 5, 2026

Changes

Please describe both what is changing and why this is important. Include:
As a user of the captcha feature, I noticed that turnstile allows us to pass various configuration options https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configuration-options. It appears that we are already passing light as a default (an example of theme). The addition of appearance to the options for captcha rendering allows us to pass it to turnstile as well. I've included the current default of always to ensure consumers do not see a change in appearance.

Testing

This can be tested by using the auth0_v2 captcha provider and passing interaction-only as the option, for appearance. This will make it so that the widget only appears to user when they need to interact with it.

Checklist

@travisrcory travisrcory requested a review from a team as a code owner May 5, 2026 23:28
@travisrcory travisrcory force-pushed the travisrcory/captcha_allow_appearence branch from 0997cd3 to 136b82c Compare May 5, 2026 23:29
Comment thread src/web-auth/captcha.js
if (challenge.provider === AUTH0_V2_CAPTCHA_PROVIDER) {
retryCount = 0;
renderParams.language = options.lang;
renderParams.appearance = options.appearance;
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant