[PR #757] [CLOSED] fix: ignore invalid provider #3466

Closed
opened 2026-03-13 10:54:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/757
Author: @hyoban
Created: 12/4/2024
Status: Closed

Base: mainHead: fix/ignore-invalid-provider


📝 Commits (1)

  • 7435cc3 fix: ignore invalid provider

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/init.ts (+4 -1)

📄 Description

When I'm developing, I might fill in an invalid clientId, which will cause the project to fail to run.

TypeError: Cannot read properties of undefined (reading 'enabled')
    at file:///Users/hyoban/i/follow-server/node_modules/.pnpm/better-auth@1.0.9/node_modules/better-auth/dist/index.js:83:30962
    at Array.map (<anonymous>)
    at Xt (file:///Users/hyoban/i/follow-server/node_modules/.pnpm/better-auth@1.0.9/node_modules/better-auth/dist/index.js:83:30916)

We might be able to ignore invalid socialProvider, or throw an error, WDYT?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/757 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 12/4/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/ignore-invalid-provider` --- ### 📝 Commits (1) - [`7435cc3`](https://github.com/better-auth/better-auth/commit/7435cc388b2d7eecde3b2833bc49d08a94fa8d5b) fix: ignore invalid provider ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/init.ts` (+4 -1) </details> ### 📄 Description When I'm developing, I might fill in an invalid `clientId`, which will cause the project to fail to run. ``` TypeError: Cannot read properties of undefined (reading 'enabled') at file:///Users/hyoban/i/follow-server/node_modules/.pnpm/better-auth@1.0.9/node_modules/better-auth/dist/index.js:83:30962 at Array.map (<anonymous>) at Xt (file:///Users/hyoban/i/follow-server/node_modules/.pnpm/better-auth@1.0.9/node_modules/better-auth/dist/index.js:83:30916) ``` We might be able to ignore invalid socialProvider, or throw an error, WDYT? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 10:54:45 -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#3466