Omkar008 commited on
Commit
68bbf2b
1 Parent(s): 920a21f

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -2
test.py CHANGED
@@ -36,12 +36,13 @@ async def login_google():
36
  }
37
 
38
  @app.post("/auth/google")
39
- async def auth_google(request: Request):
40
  #This code is basically the authorization code and this authorization code helps us to get the access token with the required scopes that we have set .
41
  #We require the gmail.readonly scopes that requires verification of our application and all.
42
  data = await request.json()
43
  code = data.get("access_token")
44
-
 
45
  if not code:
46
  raise HTTPException(status_code=400, detail="Authorization code not provided")
47
 
 
36
  }
37
 
38
  @app.post("/auth/google")
39
+ async def auth_google(request: Request,code:str):
40
  #This code is basically the authorization code and this authorization code helps us to get the access token with the required scopes that we have set .
41
  #We require the gmail.readonly scopes that requires verification of our application and all.
42
  data = await request.json()
43
  code = data.get("access_token")
44
+ print("Printing the authorisation token")
45
+ print(code)
46
  if not code:
47
  raise HTTPException(status_code=400, detail="Authorization code not provided")
48