[GH-ISSUE #1370] TypeError: Cannot read properties of undefined (reading 'enabled') when providing undefined social provider #8715

Closed
opened 2026-04-13 03:52:44 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @baptisteArno on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1370

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

socialProviders: {
    github: undefined
}

Current vs. Expected behavior

Should not throw an error

What version of Better Auth are you using?

1.1.16

Provide environment information

MacOS

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @baptisteArno on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1370 ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce ```ts socialProviders: { github: undefined } ``` ### Current vs. Expected behavior Should not throw an error ### What version of Better Auth are you using? 1.1.16 ### Provide environment information ```bash MacOS ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the lockedbug labels 2026-04-13 03:52:44 -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#8715