Issues with integrating in Hono

I'm following the guide for Hono, I've added cors, even tried setting defaultCookies options with sameSite = "none" etc, and:

  • in my frontend, using authClient I get the logged in user, so that works
  • but in my backend routes, I'm trying to get the current session using
const sessionInfos = await auth.api.getSession({
      headers: c.req.raw.headers,
    });


and this shows an empty session, even though I'm properly logged in? not sure what is missing?
Was this page helpful?