[PR #7468] [MERGED] chore: remove type casting for provider id #15580

Closed
opened 2026-04-13 10:06:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7468
Author: @bytaesu
Created: 1/19/2026
Status: Merged
Merged: 1/19/2026
Merged by: @himself65

Base: canaryHead: 2026-01-20/fix/provider-id-type


📝 Commits (1)

  • f66fba8 fix: remove type casting for provider id

📊 Changes

2 files changed (+2 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/api/routes/callback.ts (+1 -3)
📝 packages/better-auth/src/oauth2/link-account.ts (+1 -1)

📄 Description

Summary by cubic

Fixes trusted provider detection by removing incorrect type casts on provider IDs in OAuth callback and account linking. This ensures account linking and email verification checks respect all configured trusted providers.

  • Bug Fixes
    • Use the actual provider ID in trustedProviders checks instead of casting, so non-Apple providers are correctly recognized.

Written for commit f66fba814e. Summary will update on new commits.


🔄 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/7468 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 1/19/2026 **Status:** ✅ Merged **Merged:** 1/19/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2026-01-20/fix/provider-id-type` --- ### 📝 Commits (1) - [`f66fba8`](https://github.com/better-auth/better-auth/commit/f66fba814e368d886330cb104def9618eceb9fcf) fix: remove type casting for provider id ### 📊 Changes **2 files changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/callback.ts` (+1 -3) 📝 `packages/better-auth/src/oauth2/link-account.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes trusted provider detection by removing incorrect type casts on provider IDs in OAuth callback and account linking. This ensures account linking and email verification checks respect all configured trusted providers. - **Bug Fixes** - Use the actual provider ID in trustedProviders checks instead of casting, so non-Apple providers are correctly recognized. <sup>Written for commit f66fba814e368d886330cb104def9618eceb9fcf. Summary will update on new commits.</sup> <!-- 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-13 10:06: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#15580