Omkar008 commited on
Commit
24d68f4
1 Parent(s): 826999f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -13,7 +13,7 @@ from bs4 import BeautifulSoup
13
  import re
14
  from get_gmail_data import GmailDataExtractor
15
  from dotenv import load_dotenv
16
-
17
 
18
  app = FastAPI()
19
  load_dotenv()
@@ -62,6 +62,7 @@ async def test_google(code:str):
62
  "client_secret": GOOGLE_CLIENT_SECRET,
63
  "redirect_uri": GOOGLE_REDIRECT_URI,
64
  "grant_type": "authorization_code",
 
65
  }
66
  response = requests.post(token_url, data=data)
67
 
 
13
  import re
14
  from get_gmail_data import GmailDataExtractor
15
  from dotenv import load_dotenv
16
+ import os
17
 
18
  app = FastAPI()
19
  load_dotenv()
 
62
  "client_secret": GOOGLE_CLIENT_SECRET,
63
  "redirect_uri": GOOGLE_REDIRECT_URI,
64
  "grant_type": "authorization_code",
65
+ "access_type": "offline"
66
  }
67
  response = requests.post(token_url, data=data)
68