"Invalid app registration": most likely Mojang has not approved the app yet (see Mojang API approval); otherwise check the Azure app settings in Getting started
"Account does not exist in tenant": the Azure app was registered with the wrong account type; register it again with "Accounts in any organizational directory and personal Microsoft accounts"
"invalid_grant": public client flows are off; turn on "Allow public client flows" under the app's Authentication settings
"first party application" error: Set MSAL_AUTHORITY=https://login.microsoftonline.com/common
Tokens not persisting: Check the minecraft-bot-auth Docker volume exists
Multiple auth codes: Wait for authentication to complete before restarting
"No players detected": Bot reads from tab-list; ensure players are actually online
Bot not moving: Check bot has OP permissions on server
Bot cannot connect: check SERVER_HOST and SERVER_PORT in .env, that the server lets the bot's IP in and has it whitelisted, and the bot's log (docker compose logs minecraft-spectator-bot)