Base URL not working.
I pass the following:
But authClient.useSession() makes a request to the frontend instead of the backend.
9 Replies
Yes.
have you checked the network tab?
Yes, I did.
Try removing your basepath, and just set your baseURL to
http://localhost:6600/auth
That's the first thing I did. Didn't work.
The problem isn't that it's calling the wrong path, the problem is that it's entirely ignoring the base URL I pass in.
I think it might be a bug in the SDK.
Just tested on my end, everything works normally.
Do you have a repo I can check out?
I switched to Next.js when I couldn't get it to work but I'll init a new project with the same stack a did before (Tanstack Router and Elysia). I'll share the repo in a minute.
Works in the new repo I created.
Thank you for your help.
Sure no worries