sodcalculator

10 Tech How-To

Fix Discord Keeps Logging Me Out

Guide 10-49719 · Updated · Step by step

If Discord keeps logging you out, the fix is usually clearing the app’s cached data, checking your system clock, or updating the app—and in most cases, a clean reinstall resolves it. Below are the specific steps for Windows, macOS, Android, and iOS, plus the less obvious causes like VPN conflicts and token corruption.

Why Discord Logs You Out Repeatedly

Discord stores a token (a digital key) on your device to keep you signed in. When that token becomes invalid, the app forces a logout. Common triggers include:

  • Corrupted cache or local storage files
  • An incorrect system date/time, which breaks the token’s expiry check
  • A VPN or proxy that changes your IP mid-session
  • Outdated app version with known auth bugs
  • Another device logging into the same account (Discord may revoke tokens for security)
  • Malware or a browser extension interfering with the app

If you’re using the desktop app, the first thing to try is clearing the cache—no need to reinstall yet.

Fix 1: Clear Discord’s Cache and Local Data

Corrupted cache files are the #1 cause of random logouts. Here’s how to clear them on each platform:

Windows (Desktop App)

  1. Press Win+R, type %appdata%/discord and press Enter.
  2. Delete the Cache, Code Cache, and GPUCache folders. (You can also delete the whole Discord folder, but that will remove your settings.)
  3. Restart Discord. You’ll need to log in again once, but it should stick.

macOS (Desktop App)

  1. Open Finder, press Cmd+Shift+G, and enter ~/Library/Application Support/discord.
  2. Delete the same three cache folders.
  3. Relaunch Discord.

Android

  1. Go to Settings → Apps → Discord.
  2. Tap Storage & cache → Clear cache. (Don’t clear data yet—that wipes your login and settings.)
  3. Reopen Discord.

iOS

iOS doesn’t let you clear an app’s cache individually. Instead, offload the app: Settings → General → iPhone Storage → Discord → Offload App. This removes the app but keeps its data. Then reinstall Discord from the App Store. If that doesn’t work, delete the app entirely and reinstall.

Fix 2: Check Your System Date and Time

Discord’s authentication tokens have a timestamp. If your device’s clock is off by more than a few minutes, the server rejects the token and logs you out. This is especially common after a PC’s CMOS battery dies or after traveling across time zones.

  • Windows: Settings → Time & Language → Date & Time → turn on “Set time automatically” and “Set time zone automatically.”
  • macOS: System Settings → General → Date & Time → enable “Set time and date automatically.”
  • Android/iOS: Settings → System (or General) → Date & Time → enable automatic.

After fixing the clock, restart Discord and try logging in.

Fix 3: Update Discord or Reinstall

An outdated app can have bugs that cause session resets. Discord usually auto-updates, but if it’s stuck, do a manual update:

  • Windows: Close Discord completely (check the system tray), then reopen it. It should prompt an update. If not, download the latest from the official site.
  • macOS: Check the menu bar for the Discord icon, quit, then reopen. Or drag the app to Trash and reinstall.
  • Mobile: Go to the Play Store or App Store and check for updates.

If updating doesn’t help, do a clean reinstall. On Windows, also delete the %appdata%/discord folder after uninstalling to remove leftover config files. On macOS, delete ~/Library/Application Support/discord as well.

Fix 4: Disable VPNs, Proxies, and Network Filters

VPNs and proxies can cause your IP address to change mid-session, which Discord may interpret as a security risk and log you out. Similarly, some ad-blockers or firewall rules can block Discord’s authentication endpoints.

  1. Temporarily turn off your VPN or proxy and try logging in.
  2. If it works, add Discord to your VPN’s split-tunnel (so it bypasses the VPN) or switch to a different server.
  3. Check your firewall or security software: make sure Discord is allowed through. On Windows, go to Windows Security → Firewall & network protection → Allow an app through firewall and ensure Discord is checked for both private and public networks.

Fix 5: Reset Your Password (Security Measure)

If you’ve been logged out on all devices, it’s possible someone else accessed your account and Discord revoked your tokens. In that case:

  1. Go to the Discord login page and click “Forgot your password?”
  2. Reset to a strong, unique password.
  3. Enable two-factor authentication (2FA) in User Settings → My Account.
  4. Check your authorized apps and connected devices under User Settings → Authorized Apps and revoke any you don’t recognize.

After a password reset, all existing tokens are invalidated, so you’ll have to log in again on every device—but that’s a one-time thing.

Fix 6: Check for Malware or Browser Extensions

In rare cases, malware or a malicious browser extension can interfere with Discord’s local files. If you use Discord in a browser, try a different browser or an incognito window with extensions disabled. For the desktop app, run a full antivirus scan. Also check your system’s startup programs for anything suspicious that might be modifying Discord’s files.

Frequently Asked Questions

Why does Discord log me out every time I restart my computer?

This usually points to corrupted cache files or a system clock issue. Try clearing the cache folders as described above. If that doesn’t work, check that your date/time is set to automatic, and then do a clean reinstall.

Does Discord log you out for inactivity?

No, Discord doesn’t log you out for inactivity on the desktop app. However, if you’re using a public computer or a shared account, the session may expire after a long time. Mobile apps may log you out if the OS clears background data to save memory.

Can a VPN cause Discord to log me out?

Yes. If your VPN changes your IP address while you’re connected, Discord may see that as a new device and revoke the session. Use split tunneling to exclude Discord from the VPN, or switch to a static IP server.

Will reinstalling Discord delete my messages and servers?

No. Your messages, servers, and friends are stored on Discord’s servers, not on your device. Reinstalling the app only removes local files like cache and settings. You’ll just need to log in again.

Why does Discord log me out on my phone but not on my PC?

Mobile apps are more aggressive about clearing background data. Check your phone’s battery optimization settings and make sure Discord is set to “Unrestricted” or “Not optimized.” Also, ensure you’re not using a VPN on mobile that’s causing IP changes.

I cleared the cache, but Discord still logs me out. What’s next?

Try resetting your password to force all tokens to refresh, then log in again. If the problem persists, check for malware, disable any network filters, and consider using Discord’s web version to see if the issue is specific to the desktop app. If nothing works, contact Discord support with a detailed description of when the logouts happen.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →