Account and login

Failed to Verify Authentication (MinecraftClientHttpException / Status 401)

What the log looks like

com\.mojang\.authlib\.exceptions\.InvalidCredentialsException: Status: \d+
at com\.mojang\.authlib\.exceptions\.MinecraftClientHttpException\.toAuthenticationException
Failed to verify authentication[\r\n]+com\.mojang\.authlib\.exceptions\.

How to fix it

  1. To restore online multiplayer access, open your launcher's account settings, log out of your Microsoft account, and sign back in to generate a fresh session token.
  2. Verify that you are launching the game with a valid Microsoft profile rather than an 'Offline' account mode in launchers like Prism Launcher, MultiMC, or HMCL.
  3. If your game is crashing or freezing on the loading screen right after this log line, look elsewhere for the real culprit: check your crash-reports folder or hs_err_pid files, update your Intel/AMD/NVIDIA graphics drivers directly from the manufacturer, and remove unsupported clients (such as Meteor Client) that conflict with rendering mods like Sodium.
LoadersVanilla, Fabric, Quilt, Forge, Neoforge
SeverityWorth checking
CategoryAccount and login

Check your own log

Related errors