Error using getRequestHeaders()
Tech stack:
Tanstack Start
Better Auth
Prisma ORM
Mongodb Database
I have been facing some problems when trying to implement the logout button with server side data. I tried to use the getRequestHeaders function from tanstack/react-start/server to use the headers into auth.api.getSession(), but it shows some weird warning overlays in the frontend.
Tanstack Start
Better Auth
Prisma ORM
Mongodb Database
I have been facing some problems when trying to implement the logout button with server side data. I tried to use the getRequestHeaders function from tanstack/react-start/server to use the headers into auth.api.getSession(), but it shows some weird warning overlays in the frontend.