Hello,
First you can request a code:
Get a verification code and sign in with two-factor authentication - Apple Support
You can manage your trusted phone numbers, trusted devices, and other account information from your Apple ID account page.
Two-factor authentication for Apple ID - Apple Support
Kind regards,
K