Looks like I found a solution for this. This message will be displayed if you do not do step 2 of the OAuth2 stream with the same client_id and client_secret.
@app.route('/open')
def drive_open_file():
code = request.args.get('code')
if code:
credentials = credentials_from_code("client", "secret",
"https://www.googleapis.com/auth/drive.file",
code,
redirect_uri="<WEBSITE>/open")
bitle source
share