1. In a web-browser, navigate to portal.office.com
2. Sign-in using your account details
3. Click your profile icon
4. Click 'View account'
5. Click 'Update Info' in the 'Security Info' tab
6. Click 'Add sign-in method'
7. In the drop down menu, choose 'App Password'
Make sure to keep your app password somewhere safe. Use your app password in place of your usual account password when signing into desktop apps.