Run the link command in Minecraft, then enter your username and the 10-digit code.
Log in to view your account links and available Minecraft data.