Auth Client not sending cookies to Server
I'm using
authClient.$fetch in a project to make requests to my server (Elysia + Better Auth). However, I noticed that the server is not able to identify the user, because $fetch is not sending the cookies in the request.
I tested adding the cookies manually to the request, and it worked correctly.
My question is: shouldn't authClient.$fetch include cookies automatically? If that’s not the expected behavior, what is the advantage of using it instead of the standard fetch?
0 Replies