Nuxt 3 SSR Client and Hono Server issue.
I have a Nuxt 3 ssr enabled FE which I am not using the server API instead I have a separate BE with hono js.
While integrating the better-auth/vue client for SSR
I am getting this error
I suspect that when useFetch is being passed Better-auth/vue is taking the baseURL of the app? instead of the auth-client.ts
I could solve this by making a proxy API in nuxt server api route handler
Is this a bug or am I missing something?
ref:
https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/client/vue/index.ts#L94
2 Replies