[PR #4578] [MERGED] fix(vue): correct baseURL #22359

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4578
Author: @himself65
Created: 9/10/2025
Status: Merged
Merged: 9/10/2025
Merged by: @himself65

Base: canaryHead: himself65/2025/09/10/base-url


📝 Commits (1)

  • 6f60dbe fix(vue): correct baseURL

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/config.ts (+3 -0)
📝 packages/better-auth/src/client/vue/index.ts (+2 -5)

📄 Description

Closes: https://github.com/better-auth/better-auth/pull/2218


Summary by cubic

Fixes baseURL handling in the Vue client so get-session requests hit the correct path. The baseURL is now sourced from shared client config, preventing errors with root or trailing-slash URLs.

  • Bug Fixes
    • Expose baseURL via getClientConfig getter.
    • Use config.baseURL in Vue useFetch for get-session; remove ad-hoc path building.

🔄 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/4578 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/10/2025 **Status:** ✅ Merged **Merged:** 9/10/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/10/base-url` --- ### 📝 Commits (1) - [`6f60dbe`](https://github.com/better-auth/better-auth/commit/6f60dbeaffbf4e2b8474dfb9aac89f9a03c5eb11) fix(vue): correct baseURL ### 📊 Changes **2 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/config.ts` (+3 -0) 📝 `packages/better-auth/src/client/vue/index.ts` (+2 -5) </details> ### 📄 Description Closes: https://github.com/better-auth/better-auth/pull/2218 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes baseURL handling in the Vue client so get-session requests hit the correct path. The baseURL is now sourced from shared client config, preventing errors with root or trailing-slash URLs. - **Bug Fixes** - Expose baseURL via getClientConfig getter. - Use config.baseURL in Vue useFetch for get-session; remove ad-hoc path building. <!-- 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 20:59:27 -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#22359