Skip to content

fix(auth): a password reset for a passwordless account sends an email sign-in; one answer for every address - #48

Merged
jsnyder10 merged 1 commit into
mainfrom
fix/auth-reset-passwordless-signin
Sep 14, 2026
Merged

jsnyder10 merged 1 commit into
mainfrom
fix/auth-reset-passwordless-signin

Conversation

@jsnyder10

Copy link
Copy Markdown
Contributor

Patch release for @factiii/auth.

  • sendPasswordResetEmail: an active account with an email and no password, requested with a known app that has email sign-in on, now gets the same link-and-code sign-in email as auth.emailLogin.request instead of an error. Password accounts get the reset link as before.
  • Every outcome returns one body — { message: 'If an account exists with that email, we sent a link.' } — padded to the email-login response floor, so the reply no longer reveals whether an account exists or how it signs in. Unknown app. is still a 400 for an unknown key.
  • Both procedures share issueEmailLoginAttempt (same rate limits, single open attempt, hashed storage); send failures are logged, never thrown.

Tests: 285/285 (5 new). check-types, lint, build clean. changeset status: patch for @factiii/auth only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H7frtoCH37E4RjrPC6zLPc

@jsnyder10
jsnyder10 merged commit aa7ad1a into main Sep 14, 2026
1 check passed
@jsnyder10
jsnyder10 deleted the fix/auth-reset-passwordless-signin branch September 14, 2026 18:36
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