on your phone:
- go to settings
- tap apple ID (your name)
- tap password & security
- switch on two-factor authentication
on your Mac/MacBook:
- go to system preferences
- click security & privacy
- go to the general tab
- click allow apple watch to unlock your mac
- enter mac’s password
- Click the lock to make changes
now your mac will unlock automatically when you open it as long as you have your apple watch worn up
all the best
assalaam alaikum