mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 10:09:08 +00:00
update the gmail connector add route
This commit is contained in:
parent
69f6a0a278
commit
308b96af8b
2 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
# app/routes/google_gmail.py
|
||||
import os
|
||||
|
||||
os.environ["OAUTHLIB_RELAX_TOKEN_SCOPE"] = "1"
|
||||
|
||||
import base64
|
||||
import json
|
||||
import logging
|
||||
|
|
Loading…
Add table
Reference in a new issue