Refresh token already exchanged. invalid_grant
Periodically, with every call to workos.userManagement.authenticateWithRefreshToken, I encounter this error.
It'd be great to understand where it's coming from and fix it.
Active discussion is here: https://github.com/workos/authkit-nextjs/issues/28
How to reproduce: set a 2-minute access token expiration time, and after 5-10 refreshes, this error will occur.
@monolithed Did you ever figure this out? I am also getting this issue.
@watadarkstar The 2.0.1 release yesterday fixed this for me.
@gblache Which package are you referring to when you say 2.0.1 release? You are a life saver!
@watadarkstar Oops, I should have been more clear. I'm talking about the NextJS library: https://github.com/workos/authkit-nextjs. The issue in that library was causing this error to be surfaced but it wasn't the root cause, for me.