Account linking
Link your account
Run /store link in game and enter the code it gives you.
Optional: connect Discord and you can come back without running the command again. It is also the only way to recover a purchase if you lose your Minecraft account.
Connect with Discord