T
TanStack2w ago
fair-rose

getRequest import?

Hello! I'm trying to use Better Auth's server side auth.api.getSession, and it needs the request headers passed in. I see the documentation for server functions mentions a getRequest() function, but I cannot find for the life of me where to import that from
1 Reply
fair-rose
fair-roseOP2w ago
Ahh I found an example on reddit
import { getRequestHeaders } from "@tanstack/react-start/server"
import { getRequestHeaders } from "@tanstack/react-start/server"

Did you find this page helpful?