If you are a long-term Apple user, you might have noticed, that security isn't just a mere name for Apple Inc. The company is known for doing a really good job in protecting its customers' data.
On Apple devices, Touch ID or Face ID serves as a second layer of protection beyond the username/password combination.
If you sign in on a non-Apple device, Apple will send a six-digit code to a trusted device or phone number.
Be sure -> your data is well protected with iOS and Apple OS environment.