Apple Mail won't sign in to Google account
I know this question has been asked before, and it is considered solved by using Google two-factor authentication, then getting the app password, but I do not see how I can use the password as Google keeps popping up a message "Authorization Error Error 400: invalid_request". There is never a chance to update the password for Apple Mail. Where/how do I do that? This was all working fine until a few days ago, and now I'm getting these messages when trying to use Apple Mail. I the app 16 character replacement password. I just don't where I am supposed to use it. Please advise. Thanks!
iMac 2011, High Sierra 10.13.6
iMac 27″, macOS 10.13