-
Notifications
You must be signed in to change notification settings - Fork 619
only validate Turnstile captcha on Vercel environments #6314
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
only validate Turnstile captcha on Vercel environments #6314
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6314 +/- ##
=======================================
Coverage 56.83% 56.83%
=======================================
Files 1168 1168
Lines 64793 64793
Branches 5258 5258
=======================================
Hits 36824 36824
Misses 27242 27242
Partials 727 727
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
3f99ca2 to
43638e5
Compare
|

PR-Codex overview
This PR introduces a utility function
isVercelto check if the application is running in a Vercel environment. It refactors the login handling process to conditionally validate a Turnstile token based on the environment, streamlining error handling and improving code readability.Detailed summary
isVercelfunction to check Vercel environment.getVercelEnvto useisVercel.