Server to server authentication

Hello,

I have a Hono backend where my better auth is hosted as I have a web sockets there. However, I also have a TanStack Start application where I want to verify server side that a session is present.

I want to verify and make sure if it’s safe to use the getSession function that is exported from the authClient instance. Is it just a stateless call to an API endpoint that I can also call server side?

Thank you.
Was this page helpful?