[PR #650] [MERGED] fix: id is not a property in idToken payload when accountLinked is enabled #20315

Closed
opened 2026-04-15 19:36:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/650
Author: @fabianmerino
Created: 11/24/2024
Status: Merged
Merged: 11/25/2024
Merged by: @Bekacru

Base: mainHead: patch-1


📝 Commits (1)

  • e7f2ac8 fix: id is not a property in idToken payload

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+6 -1)

📄 Description

It is possible that the idToken does not contain the required id or data, so it is better to unify and destructure the information; this resolves the error when accountLinking is enabled


🔄 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/650 **Author:** [@fabianmerino](https://github.com/fabianmerino) **Created:** 11/24/2024 **Status:** ✅ Merged **Merged:** 11/25/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`e7f2ac8`](https://github.com/better-auth/better-auth/commit/e7f2ac8dde7e4cac198f2021cd142530e793073d) fix: id is not a property in idToken payload ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+6 -1) </details> ### 📄 Description It is possible that the idToken does not contain the required id or data, so it is better to unify and destructure the information; this resolves the error when accountLinking is enabled --- <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-15 19:36:53 -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#20315