Uh oh!
There was an error while loading. Please reload this page.
fix(auth): gate email-otp auto-signup behind DISABLE_EMAIL_SIGNUP - #5840
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview The same env flags are now wired into better-auth’s native With signup disabled, OTP sign-in for existing users is unchanged; unknown emails no longer get OTPs in an enumeration-safe way. Social/SSO registration is untouched. Reviewed by Cursor Bugbot for commit ba91922. Configure here. |
Greptile SummaryThis PR closes email signup paths that bypassed registration settings. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "fix(auth): also close otp auto-signup un..." | Re-trigger Greptile |
waleedlatif1
commented
Jul 22, 2026
waleedlatif1
commented
Jul 22, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ba91922. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Type of Change
Testing
Verified against better-auth 1.6.13 source: unknown-email OTP sign-in rejects instead of creating a user; existing-user OTP sign-in, email/password sign-in, and email verification paths unchanged. Typecheck and lint pass.
Checklist