You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Authentication should show login again if token expired or other token error #5678
Deleting auth.json and logging in again fixed the issue. I guess the login token had expired? Should show the login screen again if the token is expired instead of just showing an error.
Thanks for the bug report. I'm glad to hear that deleting auth.json worked for you. If this happens again, you can also log out (using the /logout command in the CLI or the "Log out" menu item in the extension).
I presume you're logging with ChatGPT? Are you using the Codex CLI or the IDE extension? In either case, if your token expires, we should seamlessly refresh it for a new one.
@etraut-openai i think something is wrong with the refresh logic, I got the same thing today (reconnecting 5/5 and throws 401) I had to logout and login again to make it work
Activity
github-actions commentedon Oct 25, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
matssk commentedon Oct 25, 2025
Deleting auth.json and logging in again fixed the issue. I guess the login token had expired? Should show the login screen again if the token is expired instead of just showing an error.
[-]Not working[/-][+]Authentication should show login again if token expired or other token error[/+]etraut-openai commentedon Oct 25, 2025
Thanks for the bug report. I'm glad to hear that deleting
auth.jsonworked for you. If this happens again, you can also log out (using the/logoutcommand in the CLI or the "Log out" menu item in the extension).I presume you're logging with ChatGPT? Are you using the Codex CLI or the IDE extension? In either case, if your token expires, we should seamlessly refresh it for a new one.
matssk commentedon Oct 25, 2025
Logging in with ChatGPT in Codex CLI
Meowzz95 commentedon Oct 26, 2025
@etraut-openai i think something is wrong with the refresh logic, I got the same thing today (reconnecting 5/5 and throws 401) I had to logout and login again to make it work
etraut-openai commentedon Nov 15, 2025
In recent versions, we've updated the refresh logic to surface the error.