can't get session after verify magic link token
this is my config. the console.log shows that I get the data, but when i try to getSession or refetch.session, it always return null. Im using bun as runner
4 Replies
I usually find that doing a hard reload triggers the session. Sometimes there's a less intense way of refreshing, but that seems to be a fail-safe
I tried that, and checked the network, getSession kept returning null
I integrate better-auth with Hono
Don't use getSession, the hard refresh will reload the session hook for you
same issue. I wonder if its db configuration issue. because
const { error, data } = await verifyToken(token);
return the session, but it somehow not set the current session