[PR #3509] [CLOSED] fix: auth type on social provider #30463

Closed
opened 2026-04-17 21:32:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3509
Author: @Kinfe123
Created: 7/20/2025
Status: Closed

Base: mainHead: fix/auth-type-oauth-issue


📝 Commits (2)

📊 Changes

4 files changed (+38 additions, -12 deletions)

View changed files

📝 packages/better-auth/src/oauth2/validate-authorization-code.ts (+4 -3)
📝 packages/better-auth/src/plugins/organization/adapter.ts (+22 -0)
📝 packages/better-auth/src/plugins/organization/routes/crud-org.ts (+11 -8)
📝 packages/better-auth/src/social-providers/twitter.ts (+1 -1)

📄 Description

Summary by cubic

Fixed OAuth authentication type for social providers like Twitter and improved organization membership checks to prevent unauthorized access.

  • Bug Fixes
    • Set authentication to "basic" for Twitter OAuth to resolve login issues.
    • Added a direct membership check to ensure users can only set active organizations they belong to.

🔄 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/3509 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 7/20/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/auth-type-oauth-issue` --- ### 📝 Commits (2) - [`99f1519`](https://github.com/better-auth/better-auth/commit/99f1519efce4216349d93144a3e5b98f588ebf9e) perf: active org - [`b6635d9`](https://github.com/better-auth/better-auth/commit/b6635d97f4a1c76d56a5e2ce1d7b96559147cab6) authentication type ### 📊 Changes **4 files changed** (+38 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/oauth2/validate-authorization-code.ts` (+4 -3) 📝 `packages/better-auth/src/plugins/organization/adapter.ts` (+22 -0) 📝 `packages/better-auth/src/plugins/organization/routes/crud-org.ts` (+11 -8) 📝 `packages/better-auth/src/social-providers/twitter.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed OAuth authentication type for social providers like Twitter and improved organization membership checks to prevent unauthorized access. - **Bug Fixes** - Set authentication to "basic" for Twitter OAuth to resolve login issues. - Added a direct membership check to ensure users can only set active organizations they belong to. <!-- End of auto-generated description by cubic. --> --- <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-04-17 21:32:55 -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#30463