If you would like to understand two-factor authentication in more detail, here are some useful sites you might want to research.
Wikipedia
CERT NZ
CERT NZ is a government organisation that works alongside other government agencies to help New Zealand better understand and stay resilient to cyber security threats.