React Query / Better Auth / Next js
I have a doubt, I'm using better auth on next js, and I'm using react query, and Hono for the backend, where I have the middleware working, and all the queries made client side (react-query), are working, as I believe that cookies and tokens are automatically sent in the request,
but now I'm learning how to use prefetch queries, on server side, and all requests fail because of lack of authentication. what would be the correct way to pass the cookie, or the session (whichever is necessary), through the server action to the middleware catch session and user
functions to useGetRentProperties
server action
but now I'm learning how to use prefetch queries, on server side, and all requests fail because of lack of authentication. what would be the correct way to pass the cookie, or the session (whichever is necessary), through the server action to the middleware catch session and user
functions to useGetRentProperties
server action