[PR #5389] [MERGED] fix(anonymous): Provide ctx on accountLink #22874

Closed
opened 2026-04-15 21:20:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5389
Author: @ping-maxwell
Created: 10/17/2025
Status: Merged
Merged: 10/17/2025
Merged by: @Bekacru

Base: canaryHead: fix/anonymous/provide-ctx-on-link


📝 Commits (1)

  • 2b1b40f fix(anonymous): Provide ctx on accountLink

📊 Changes

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

View changed files

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

📄 Description

linear:
https://linear.app/better-auth/issue/ENG-459/fix-pass-ctx-to-anonymous-plugins-onlinkaccount


Summary by cubic

Pass ctx (GenericEndpointContext) to the anonymous plugin’s onLinkAccount callback so plugins can use request context during account linking. Addresses Linear ENG-459, enabling access to headers/cookies when linking.


🔄 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/5389 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/17/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/anonymous/provide-ctx-on-link` --- ### 📝 Commits (1) - [`2b1b40f`](https://github.com/better-auth/better-auth/commit/2b1b40ff3093fa00e85f65e5c7f0843034079354) fix(anonymous): Provide `ctx` on accountLink ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/anonymous/index.ts` (+6 -1) </details> ### 📄 Description linear: https://linear.app/better-auth/issue/ENG-459/fix-pass-ctx-to-anonymous-plugins-onlinkaccount <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Pass ctx (GenericEndpointContext) to the anonymous plugin’s onLinkAccount callback so plugins can use request context during account linking. Addresses Linear ENG-459, enabling access to headers/cookies when linking. <!-- 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-15 21:20:37 -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#22874