Access iCloud on my Mac without my phone?
System preferences → iCloud → account details → security → get a verification code:  for Mojave

System Preferences → Apple ID → Password &amp; Security → Get a verification code: for Catalina