If you would like to understand two-factor authentication in more detail, here are some useful sites you might want to research.
Wikipedia
Stay Smart Online
Stay Smart Online is an Australian Government organisation. Stay Smart Online provides topical, relevant and timely information on how home internet users and small businesses can protect themselves from, and reduce the risk of, cyber security threats such as software vulnerabilities, online scams, malicious activities, and risky online behaviours.