I know when you first set up your mac with your Apple ID, up pops the authentication dialog on your phone and then once you confirm, a number pops up. That’s fine. In fact, this happens when you try to log into the Apple Store or when you log into iCloud for the first time.
How to make this happen every time you log into your Mac rather than just the first time? I would especially like to see this happen when the computer is shut down and rebooted (e.g. someone may have stolen your computer).