You have to setup two factor authentication first. Then you can generate the app password like that.
I strongly recommend setting up two factor authentication, as its a serious security problem if you use your actual gmail password, and if reef-pi is compromised your entire account is compromised. I always use it, so I have never tried directly using my password. I think if two factor is not enabled, you can just use your own gmail password, but I dont know if it will work and i would not recommend doing this other than for testing