BA
Better Auth•5mo ago
Qarch

better-auth/client internal fetch logic gets overridden or ignored

Hey team 👋 — I'm using better-auth/vue in my Nuxt 3 app to call my custom backend API. When I pass a baseURL to createAuthClient, it seems like all the internal fetch logic (like headers, payload serialization, etc.) gets overridden or ignored. Here's my usage:
import { createAuthClient } from 'better-auth/vue'

export function useApi() {
const authService = createAuthClient({
baseURL: `${useRuntimeConfig().public.BASE_API_URL}`,
})

return {
authService,
}
}
import { createAuthClient } from 'better-auth/vue'

export function useApi() {
const authService = createAuthClient({
baseURL: `${useRuntimeConfig().public.BASE_API_URL}`,
})

return {
authService,
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?