Omkar008 commited on
Commit
c95cc68
1 Parent(s): 2e66c76

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +4 -0
test.py CHANGED
@@ -47,6 +47,7 @@ app.get("/test")
47
  async def auth_google(code:str):
48
 
49
  token_url = "https://accounts.google.com/o/oauth2/token"
 
50
  print(code)
51
  data = {
52
  "code": code,
@@ -57,6 +58,9 @@ async def auth_google(code:str):
57
  }
58
  response = requests.post(token_url, data=data)
59
  access_token = response.json().get("access_token")
 
 
 
60
  # if not access_token:
61
  # raise HTTPException(status_code=400, detail="Authorization code not provided")
62
  print("Entered this function, for testing purposes")
 
47
  async def auth_google(code:str):
48
 
49
  token_url = "https://accounts.google.com/o/oauth2/token"
50
+ print("Printing authorisation token")
51
  print(code)
52
  data = {
53
  "code": code,
 
58
  }
59
  response = requests.post(token_url, data=data)
60
  access_token = response.json().get("access_token")
61
+ print("printing access token , yo yo test")
62
+ print(access_token)
63
+
64
  # if not access_token:
65
  # raise HTTPException(status_code=400, detail="Authorization code not provided")
66
  print("Entered this function, for testing purposes")