To get your 8-digit code, sign in on Minecraft with Microsoft Account and input the required credentials to view your code.