Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -48,9 +48,10 @@ async def login_google():
|
|
48 |
@app.get("/test")
|
49 |
async def test_google(code:str):
|
50 |
|
51 |
-
token_url = "https://accounts.google.com/o/oauth2/token"
|
52 |
print("Printing authorisation token")
|
53 |
print(code)
|
|
|
54 |
data = {
|
55 |
"code": code,
|
56 |
"client_id": GOOGLE_CLIENT_ID,
|
|
|
48 |
@app.get("/test")
|
49 |
async def test_google(code:str):
|
50 |
|
51 |
+
# token_url = "https://accounts.google.com/o/oauth2/token"
|
52 |
print("Printing authorisation token")
|
53 |
print(code)
|
54 |
+
token_url="https://oauth2.googleapis.com/token"
|
55 |
data = {
|
56 |
"code": code,
|
57 |
"client_id": GOOGLE_CLIENT_ID,
|