[GH-ISSUE #184] Bug: Changing name to providerId throws error when log in with email and pass #16794

Closed
opened 2026-04-15 14:46:58 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @juanbercoff on GitHub (Oct 15, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/184

Describe the bug
Renaming providerId to provider_id then throws an error when trying to login with email and password.
export const auth = betterAuth({
account: {
fields: {
...
providerId: 'provider_id'
}
},
...
}

To Reproduce

  1. Change name to something other than providerId
  2. Register user with email and pass
  3. Try to login

Throws "Credential account not found" error

Originally created by @juanbercoff on GitHub (Oct 15, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/184 **Describe the bug** Renaming providerId to provider_id then throws an error when trying to login with email and password. export const auth = betterAuth({ account: { fields: { ... providerId: 'provider_id' } }, ... } **To Reproduce** 1. Change name to something other than providerId 2. Register user with email and pass 3. Try to login Throws "Credential account not found" error
GiteaMirror added the lockedbug labels 2026-04-15 14:46:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16794