Two-factor authentication method for additional security during login

in two factor authentication can you pls tell how this will work