Refresh token was already used after session timed out
What version of Codex is running?
0.56
What subscription do you have?
Pro
Which model were you using?
No response
What platform is your computer?
Linux 6.14.0-32-generic x86_64
What issue are you seeing?
If I leave a session idle for a couple days, I get the following message:
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
I don't need to log out and log in again to fix it, simply closing codex and opening it again works.
I do always have multiple sessions open in different terminals. Perhaps that's why the refresh token was already used?
What steps can reproduce the bug?
Leave a session idle for a few days
What is the expected behavior?
No response
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #6448
- #6393
Powered by Codex Action
any update on this issue?
any update ?
In my case i just need to reload the vs code, press crtl + shift + p and type reload window.
codex auth logout
codex auth login
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
The only thing which worked for me (in Mint Linux) is to remove ~/.codex/auth.json and then to restart VSCode and login into ChatGPT again...
This will be fixed in the next release.
just ran into this problem with the latest release 0.5.58......
I just ran into the same problem with 0.5.58. I was running into this on 0.4.58 as well, for the past week. I am really struggling here. I have logged out and back in from everything. I have restarted. Not sure what to do so that I can continue working.
The fix is not in 0.5.58. It will be in 0.5.59 and 0.4.59.
The workaround is to log in again, so this shouldn't block you from working. If you're blocked (unable to log in again), then you're experiencing a different problem.
I can log out and log back in, but it doesn't fix the problem. i get the same error. Any other possible workarounds? Also, when will 0.5.59 and 0.4.59 be available?
If logging out and logging back in doesn't work, then you're experiencing a different problem. It's unlikely that the next version will fix it for you. Please use the /feedback slash command to upload your logs, open a new bug report and post your thread ID.
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
The only thing which worked for me (in Mint Linux) is to remove ~/.codex/auth.json and then to restart VSCode and login into ChatGPT again...
Thanks, it worked
"Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again."
The only thing which worked for me (in Mint Linux) is to remove ~/.codex/auth.json and then to restart VSCode and login into ChatGPT again...
Thank you, this worked for MacOS
You are probably using old version of codex. also try to signin in the terminal first, then you can use the macos app.
Still happening with codex-cli 0.98.0
Yes, this is happening frequently to me. v0.104.0 and previous versions over the past week
Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again.
I still encounter the same problem now.
I still encounter the same problem now.
is it perhaps another new issue? I haven't experienced the original issue since it was fixed back in January at least