Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -35,7 +35,7 @@ async def login_google():
|
|
35 |
"url_hr": oauth_url_hr
|
36 |
}
|
37 |
|
38 |
-
@app.
|
39 |
async def auth_google(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.
|
|
|
35 |
"url_hr": oauth_url_hr
|
36 |
}
|
37 |
|
38 |
+
@app.post("/auth/google")
|
39 |
async def auth_google(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.
|