[PR #461] [MERGED] feat: better account linking for anonymous users #3307

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/461
Author: @Bekacru
Created: 11/8/2024
Status: Merged
Merged: 11/8/2024
Merged by: @Bekacru

Base: mainHead: feat/anon-linking


📝 Commits (2)

  • cebf4c0 feat: better account linking for anonymous users
  • a0f305c fix: remove commented block

📊 Changes

5 files changed (+140 additions, -91 deletions)

View changed files

📝 docs/content/docs/plugins/anonymous.mdx (+24 -4)
📝 packages/better-auth/src/api/routes/session.ts (+12 -2)
📝 packages/better-auth/src/plugins/anonymous/anon.test.ts (+13 -17)
📝 packages/better-auth/src/plugins/anonymous/index.ts (+89 -66)
📝 packages/better-auth/src/types/plugins.ts (+2 -2)

📄 Description

Instead of relying on linkAccount, this PR introduces a callback that enables seamless linking of anonymous accounts.


🔄 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/461 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/8/2024 **Status:** ✅ Merged **Merged:** 11/8/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/anon-linking` --- ### 📝 Commits (2) - [`cebf4c0`](https://github.com/better-auth/better-auth/commit/cebf4c01acab33359deb1292e3e9dd969b16849e) feat: better account linking for anonymous users - [`a0f305c`](https://github.com/better-auth/better-auth/commit/a0f305cbb2bb01763433cbac4f0a9cd00cc3eb6b) fix: remove commented block ### 📊 Changes **5 files changed** (+140 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/anonymous.mdx` (+24 -4) 📝 `packages/better-auth/src/api/routes/session.ts` (+12 -2) 📝 `packages/better-auth/src/plugins/anonymous/anon.test.ts` (+13 -17) 📝 `packages/better-auth/src/plugins/anonymous/index.ts` (+89 -66) 📝 `packages/better-auth/src/types/plugins.ts` (+2 -2) </details> ### 📄 Description Instead of relying on `linkAccount`, this PR introduces a callback that enables seamless linking of anonymous accounts. --- <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:48:11 -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#3307