from flask_login import ( LoginManager, UserMixin, login_user, logout_user, login_required, current_user, ) google = oauth.remote_app( "google", consumer_key="YOUR_GOOGLE_CLIENT_ID", consumer_secret="YOUR_GOOGLE_CLIENT_SECRET", request_token_params={"scope": "email"}, base_url="https://www.googleapis.com/oauth2/v1/", request_token_url=None, access_token_method="POST", access_token_url="https://accounts.google.com/o/oauth2/token", authorize_url="https://accounts.google.com/o/oauth2/auth", )