[PR #1830] [MERGED] feat: Link account with idToken #4017

Closed
opened 2026-03-13 11:28:24 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1830
Author: @reslear
Created: 3/15/2025
Status: Merged
Merged: 6/20/2025
Merged by: @Bekacru

Base: mainHead: feat/link-social-id-token


📝 Commits (9)

  • d448113 add idToken to link account
  • 61667b4 add docs
  • 9f13ecd Merge branch 'main' into feat/link-social-id-token
  • d4af508 Merge branch 'better-auth:main' into feat/link-social-id-token
  • 07b1410 Implemented linking accounts based on idToken
  • d8323b1 Merge branch 'better-auth:main' into feat/link-social-id-token
  • 0edd140 fix: tests
  • 306b4b3 docs: prevent diff
  • 6269830 docs: prevent diff

📊 Changes

5 files changed (+281 additions, -7 deletions)

View changed files

📝 docs/content/docs/concepts/users-accounts.mdx (+33 -0)
📝 packages/better-auth/src/api/routes/account.test.ts (+82 -6)
📝 packages/better-auth/src/api/routes/account.ts (+147 -1)
📝 packages/better-auth/src/api/routes/callback.ts (+13 -0)
📝 packages/better-auth/src/types/options.ts (+6 -0)

📄 Description

closes: #1077

  • implementation
  • docs

🔄 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/1830 **Author:** [@reslear](https://github.com/reslear) **Created:** 3/15/2025 **Status:** ✅ Merged **Merged:** 6/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/link-social-id-token` --- ### 📝 Commits (9) - [`d448113`](https://github.com/better-auth/better-auth/commit/d4481132a60d506e5f55e0a4ea052ac50ce027f5) add idToken to link account - [`61667b4`](https://github.com/better-auth/better-auth/commit/61667b4a8b490a8e619d00358157a45ff0c7e46a) add docs - [`9f13ecd`](https://github.com/better-auth/better-auth/commit/9f13ecd65f63930886ab28306019ffc9ee21fb84) Merge branch 'main' into feat/link-social-id-token - [`d4af508`](https://github.com/better-auth/better-auth/commit/d4af508a8f1b2f78f24649ecab71e870d3c46be5) Merge branch 'better-auth:main' into feat/link-social-id-token - [`07b1410`](https://github.com/better-auth/better-auth/commit/07b1410d4e1b0c3a52afd12cd23e1061d13e2d10) Implemented linking accounts based on idToken - [`d8323b1`](https://github.com/better-auth/better-auth/commit/d8323b16463661fda7533bb25c5d5878e2677eb4) Merge branch 'better-auth:main' into feat/link-social-id-token - [`0edd140`](https://github.com/better-auth/better-auth/commit/0edd140031ee16bf83775aff9857260ec2f761a2) fix: tests - [`306b4b3`](https://github.com/better-auth/better-auth/commit/306b4b37f086b95e7a6dac14c9e554677a5660e3) docs: prevent diff - [`6269830`](https://github.com/better-auth/better-auth/commit/62698307d1725fa159b0e43aeb0f0c16818f1187) docs: prevent diff ### 📊 Changes **5 files changed** (+281 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/users-accounts.mdx` (+33 -0) 📝 `packages/better-auth/src/api/routes/account.test.ts` (+82 -6) 📝 `packages/better-auth/src/api/routes/account.ts` (+147 -1) 📝 `packages/better-auth/src/api/routes/callback.ts` (+13 -0) 📝 `packages/better-auth/src/types/options.ts` (+6 -0) </details> ### 📄 Description closes: #1077 - [x] implementation - [x] docs --- <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 11:28:24 -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#4017