codex - 💡(How to fix) Fix phone verification cannot send code to Pakistani numbers

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

After getting this auth error in Codex: Error running remote compact task: unexpected status 401 Unauthorized: Encountered invalidated oauth token for user, failing request, url: https://chatgpt.com/backend-api/codex/responses/compact, auth error: 401, auth error code: token_revoked I am located in Pakistan and I tried multiple real Pakistani mobile numbers in the correct international format (+92...), but every attempt fails with this error: 2. Codex showed this authentication error: Error running remote compact task: unexpected status 401 Unauthorized: Encountered invalidated oauth token for user, failing request, url: https://chatgpt.com/backend-api/codex/responses/compact, auth error: 401, auth error code: token_revoked 7. Every Pakistani number fails with this error: I should not be locked out of Codex after a token_revoked authentication error. The issue started after Codex showed a token_revoked / invalidated OAuth token error and I logged out to fix it.

Root Cause

I am currently unable to access Codex because the login flow is blocked at phone verification.

Fix Action

Fix / Workaround

Please check whether SMS verification for Pakistani numbers is failing or blocked, and please provide a workaround or manual verification option.

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

letast

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 if ([Environment]::Is64BitOperatingSystem) { "x64" } else { "x86" }

What issue are you seeing?

After getting this auth error in Codex:

Error running remote compact task: unexpected status 401 Unauthorized: Encountered invalidated oauth token for user, failing request, url: https://chatgpt.com/backend-api/codex/responses/compact, auth error: 401, auth error code: token_revoked

I logged out of Codex and tried to log in again. During login, Codex now requires phone verification.

I am located in Pakistan and I tried multiple real Pakistani mobile numbers in the correct international format (+92...), but every attempt fails with this error:

“Unable to send a verification code to this phone number. Please try again later or use a different number.”

I have already tried:

  • Multiple real Pakistani SIM numbers
  • Correct +92 international format
  • Different browsers
  • Incognito/private window
  • Clearing cookies/cache
  • Disabling VPN/proxy
  • Waiting and retrying later
  • Logging out and trying again

Nothing works, so I am currently locked out of Codex and cannot complete login.

Please help me complete verification or provide an alternative verification method for my account.

What steps can reproduce the bug?

  1. I was using Codex normally.
  2. Codex showed this authentication error:

Error running remote compact task: unexpected status 401 Unauthorized: Encountered invalidated oauth token for user, failing request, url: https://chatgpt.com/backend-api/codex/responses/compact, auth error: 401, auth error code: token_revoked

  1. I logged out of Codex.
  2. I tried to log in again.
  3. During login, Codex required phone verification.
  4. I entered multiple real Pakistani mobile numbers using the correct international format (+92...).
  5. Every Pakistani number fails with this error:

“Unable to send a verification code to this phone number. Please try again later or use a different number.”

  1. I tried again after clearing cache/cookies, using different browsers, using incognito/private mode, disabling VPN/proxy, and waiting before retrying, but the same issue still happens.

What is the expected behavior?

Codex should allow me to log in successfully and complete phone verification using a real Pakistani mobile number, or provide an alternative verification method if SMS delivery to Pakistan is not working.

I should not be locked out of Codex after a token_revoked authentication error.

Additional information

I am located in Pakistan and I am using real Pakistani SIM numbers, not VoIP or temporary numbers.

The issue started after Codex showed a token_revoked / invalidated OAuth token error and I logged out to fix it.

I am currently unable to access Codex because the login flow is blocked at phone verification.

Please check whether SMS verification for Pakistani numbers is failing or blocked, and please provide a workaround or manual verification option.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix phone verification cannot send code to Pakistani numbers