@jerryjliu0, I'm experiencing a different problem with auth for the Google Drive (and Docs) loaders. Do you by any chance know of a fix?
Whenever I try to construct an index, I'm redirected to this sign-in screen and get a 400 Error: redirect_uri_mismatch. Even though my app is hosted at port 8080, it seems like the calls are being made to a different port.
The problem is that whenever I add these ports as authorized redirect URIs for the OAuth 2.0 Client ID, the next time I try to construct an index I'm redirected to a different port.
I've tried setting Google OAuth both as a web application and a desktop app, but neither seem to work. The desktop app also prompts me to sign-in, and after I input my Google login details, I'm redirected to a localhost:[RANDOM_PORT] with error "this site can’t be reached".
I'm hosting the backend for my Flask application in an EC2 instance. Could that be part of the problem?