Skip to content

fix(#744): extract verifyCredentials from login()#858

Open
Alqku wants to merge 1 commit into
MettaChain:mainfrom
Alqku:fix/issue-744-extract-verify-credentials
Open

fix(#744): extract verifyCredentials from login()#858
Alqku wants to merge 1 commit into
MettaChain:mainfrom
Alqku:fix/issue-744-extract-verify-credentials

Conversation

@Alqku

@Alqku Alqku commented Jun 30, 2026

Copy link
Copy Markdown

Closes #744
Closes #743
Closes #745
Closes #746

Extracts post-findByEmail credential verification (account state gates + bcrypt password compare + rate-limit / fraud / lockout side effects) into a new private verifyCredentials(user, password, ip?, ua?) method. The login() method is now shorter and easier to read; verifyCredentials is independently testable.

  • All existing 43 auth tests still pass
  • TypeScript compiles cleanly
  • Lint clean on the changed file
  • No unrelated changes

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Alqku Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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

Labels

None yet

Projects

None yet

1 participant