Codex asks for login everytime i use it for github operations

I use the CLI version of the ChatGPT Codex. Everytime i ask it to perform any github operation involving the `gh CLI and not git CLI like raising a PR. It asks me to login again and again. Maybe because it is working inside some sort of Sandbox. It is not the case in other agentic CLIs like Claude Code, Grok CLI, OpenCode.