GitHub Copilot Sign-In Loop or Authorization Failed

Share
Workaround available VS Code, JetBrains, Visual Studio Updated November 14, 2026Based on 3 user reportsHow we research

Quick answer

Repeated login prompts usually come from a stale cached token. Sign out everywhere, clear stored github.com credentials and sign in again.

Most likely fix: Sign out and reload

How to fix it

Try these in order — the most common fix is first.

  1. 1. Sign out and reload

    1. VS Code: Accounts icon > Sign out, then Developer: Reload Window
    2. JetBrains: Settings > Tools > GitHub Copilot > Sign Out
    Did this fix it?
  2. 2. Clear saved credentials

    1. Remove github.com entries from Windows Credential Manager, macOS Keychain or the Linux keyring
    2. Restart the IDE and sign in
    Did this fix it?
  3. 3. Test a clean profile

    1. Launch VS Code with a fresh --user-data-dir
    2. If sign-in works, your main profile is corrupted
    Did this fix it?
  4. 4. Update or downgrade the plugin

    1. Update the JetBrains plugin; if the regression started after an update, install the previous version
    Did this fix it?

Symptoms

Browser auth succeeds but the IDE keeps asking, or stuck on 'Retrieving GitHub Device Code'.

Why it happens

  • Stale token in the OS credential store
  • Plugin regression (JetBrains)
  • Signed in with a different GitHub account than the one with a Copilot seat
  • Proxy blocking auth

This guide also covers

  • copilot sign in loop
  • copilot authorization failed

Still not working?

If GitHub Copilot keeps failing, you're not alone. See every GitHub Copilot problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All login, account & activation guides →

Other GitHub Copilot errors

All 12 GitHub Copilot errors and fixes →