Skip to content

fix(clerk-js): Reload env and retry if authenticateWithRedirect fails#4327

Merged
nikosdouvlis merged 2 commits intomainfrom
nikos/retry-oauth-if-captcha-failed
Oct 14, 2024
Merged

fix(clerk-js): Reload env and retry if authenticateWithRedirect fails#4327
nikosdouvlis merged 2 commits intomainfrom
nikos/retry-oauth-if-captcha-failed

Conversation

@nikosdouvlis
Copy link
Member

Description

If captcha verification failed because the environment has changed, we need to reload the environment and try again one more time with the new environment. If this fails again, we will let the caller handle the error accordingly.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2024

🦋 Changeset detected

Latest commit: 71f1ccd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants