update the gmail connector add route

This commit is contained in:
CREDO23 2025-08-08 21:16:31 +02:00
parent 69f6a0a278
commit 308b96af8b
2 changed files with 4 additions and 7 deletions

View file

@ -1,9 +1,3 @@
import os
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = (
"1" # It is to disbale the error "Invalid token scope" when using Google OAuth with increemental scopes
)
from contextlib import asynccontextmanager
from fastapi import Depends, FastAPI

View file

@ -1,4 +1,7 @@
# app/routes/google_gmail.py
import os
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = "1"
import base64
import json
import logging