Omkar008 commited on
Commit
985f920
1 Parent(s): 6316cb6

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -2
test.py CHANGED
@@ -57,9 +57,10 @@ 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
  access_token_new = access_token
 
63
  brand_name = "louis vuitton"
64
 
65
  user_info = requests.get("https://www.googleapis.com/oauth2/v1/userinfo", headers={"Authorization": f"Bearer {access_token_new}"})
 
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
  access_token_new = access_token
63
+ print("Entered this function, for testing purposes")
64
  brand_name = "louis vuitton"
65
 
66
  user_info = requests.get("https://www.googleapis.com/oauth2/v1/userinfo", headers={"Authorization": f"Bearer {access_token_new}"})