Token refreshed, but not stored?

Hello

any chance someone can take a look at https://github.com/better-auth/better-auth/discussions/5786

I'm stuck. The token is being refreshed, but after the first time it is refreshed all subsequent .getAccessToken are being refreshed as well. I think the updated token is not stored correctly and it is still using the old token, hence the refresh.
GitHub
Hello I'm trying to migrate from Authjs to better-auth in NextJS I've setup microsoft as a login provider in auth.ts src\auth.ts export const auth = betterAuth({ baseURL: process.env.BETTER...
Was this page helpful?