How to refresh JWT manually
I understand that the JWT may expire before the session expires. In this case, I check whether the JWT is expired before I issue a new JWT.
I've tried this method so far but no avail:
- getting the session using the expired jwt so I can call
api.getToken
by placing the session token but no avail as calling getSession only returns null
For context, I am using bearer() and jwt() plugin together. And I am using a full-fledged authorization server where there is no client-side better-auth sdk4 Replies

Or must my client-side store the session token?
I assume the session token must still be stored in the client-side and is sent as some cookie to my server. Meanwhile, the JWT is the value in Authorization header?

Doing something like this. Hope anyone can confirm if this is right! Not sure if you're part of their dev team but maybe I can get your advice @KiNFiSH