Omkar008 commited on
Commit
8d9bc37
1 Parent(s): 4d6d7cd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -59,10 +59,11 @@ async def test_google(code:str):
59
  "grant_type": "authorization_code",
60
  }
61
  response = requests.post(token_url, data=data)
 
62
  access_token = response.json().get("access_token")
63
  print("printing access token , yo yo test")
64
  print(access_token)
65
- return {"access_token":access_token}
66
  # # if not access_token:
67
  # # raise HTTPException(status_code=400, detail="Authorization code not provided")
68
  # print("Entered this function, for testing purposes")
 
59
  "grant_type": "authorization_code",
60
  }
61
  response = requests.post(token_url, data=data)
62
+
63
  access_token = response.json().get("access_token")
64
  print("printing access token , yo yo test")
65
  print(access_token)
66
+ return {"access_token":response}
67
  # # if not access_token:
68
  # # raise HTTPException(status_code=400, detail="Authorization code not provided")
69
  # print("Entered this function, for testing purposes")