Bug: Changing name to providerId throws error when log in with email and pass #79

Closed
opened 2026-03-13 07:32:06 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @juanbercoff on GitHub (Oct 15, 2024).

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). **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 bug label 2026-03-13 07:32:06 -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#79