Keep your Apple ID secure on Mac
Your Apple ID is the account you use to access Apple services like the App Store, Apple Music, iCloud, iMessage, FaceTime, and more. Your account includes the email address and password you use to sign in as well as the contact, payment, and security details you use across Apple services.
Best practices for maximizing the security of your Apple ID
Don’t share your Apple ID with other people, even family members.
You can name up to five people you trust as Account Recovery Contacts to help you regain access to your account if you ever get locked out. You can also assign a person as a Legacy Contact in the event of your passing. See Set up your Apple ID sign-in and security information on Mac.
To share purchases, subscriptions, a family calendar, and more without sharing Apple IDs, set up Family Sharing.
Don’t provide your password, security questions, verification codes, recovery key, or any other account security details to anyone else. Apple will never ask you for this information.
Don’t use your Apple ID password with other online accounts.
When using a public computer, always sign out when your session is complete to prevent other people from accessing your account.
Let two-factor authentication protect your account. If you create a new Apple ID on a device with iOS 13.4, iPadOS 13.4, macOS 10.15.4, or later, your account automatically uses two-factor authentication. If you previously created an Apple ID account without two-factor authentication, turn on two-factor authentication. See Use two-factor authentication for Apple ID security on your Mac.
For more information about best practices, see the Apple Support article Security and your Apple ID.