[PR #2333] [MERGED] update: getActions from client plugins to include clientOptions in get user client config #12514

Closed
opened 2026-04-13 08:26:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2333
Author: @ping-maxwell
Created: 4/17/2025
Status: Merged
Merged: 5/9/2025
Merged by: @Bekacru

Base: mainHead: update/client-get-actions/client-options-param


📝 Commits (3)

  • a46ecfb update: getActions from client plugins to include clientOptions in get user client config
  • 0212aad update: rename clientOptions to options
  • 1e64b0b chore: lint

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/config.ts (+4 -1)
📝 packages/better-auth/src/client/types.ts (+8 -1)

📄 Description

Helpful for situations like this where you need to get the basePath to fetch internal auth API within getActions of a client plugin:
image


🔄 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/2333 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 4/17/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `update/client-get-actions/client-options-param` --- ### 📝 Commits (3) - [`a46ecfb`](https://github.com/better-auth/better-auth/commit/a46ecfb644181135cc7be5befd2e446b6d716ed4) update: `getActions` from client plugins to include `clientOptions` in get user client config - [`0212aad`](https://github.com/better-auth/better-auth/commit/0212aadd8bed875632c062fb8c1c2f8dfe34c7eb) update: rename `clientOptions` to `options` - [`1e64b0b`](https://github.com/better-auth/better-auth/commit/1e64b0b35d38478ca6d9e5d85d1e69eff26d48a7) chore: lint ### 📊 Changes **2 files changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/config.ts` (+4 -1) 📝 `packages/better-auth/src/client/types.ts` (+8 -1) </details> ### 📄 Description Helpful for situations like this where you need to get the basePath to fetch internal auth API within `getActions` of a client plugin: ![image](https://github.com/user-attachments/assets/d40a786a-a923-4570-8f88-19d378e6d95d) --- <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 08:26:09 -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#12514