[PR #2662] [MERGED] fix: make getAccessToken available to client #12677

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2662
Author: @BlankParticle
Created: 5/15/2025
Status: Merged
Merged: 5/16/2025
Merged by: @Bekacru

Base: mainHead: fix/get-access-token-client


📝 Commits (1)

  • 3d64dfd fix: make getAccessToken available to client

📊 Changes

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

View changed files

📝 packages/better-auth/src/api/routes/account.ts (+0 -1)

📄 Description

ref https://github.com/better-auth/better-auth/pull/2557#issuecomment-2883594724

removed SERVER_ONLY on getAccessToken endpoint so that the method is available to client as stated in the 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/2662 **Author:** [@BlankParticle](https://github.com/BlankParticle) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/get-access-token-client` --- ### 📝 Commits (1) - [`3d64dfd`](https://github.com/better-auth/better-auth/commit/3d64dfd19815d617610998d704425a443656aa71) fix: make getAccessToken available to client ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/account.ts` (+0 -1) </details> ### 📄 Description ref https://github.com/better-auth/better-auth/pull/2557#issuecomment-2883594724 removed `SERVER_ONLY` on `getAccessToken` endpoint so that the method is available to client as stated in the 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-04-13 08:31:59 -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#12677