diff --git a/application/config.py b/application/config.py
index ddfcd96..7a986d4 100644
--- a/application/config.py
+++ b/application/config.py
@@ -8,6 +8,8 @@ class Settings(BaseSettings):
auth0_api_audience: str
auth0_issuer: str
auth0_algorithms: str
+ google_client_id: str
+ google_client_secret: str
class Config:
env_file = ".env"
diff --git a/application/main.py b/application/main.py
index b33b247..cc3adbf 100644
--- a/application/main.py
+++ b/application/main.py
@@ -55,6 +55,9 @@ class PrintAction(BaseModel):
# sentence (prints a custom message)
sentence: str = ""
+class GoogleUpdate(BaseModel):
+ code: str
+
# @app.get("/api/public")
# def public():
# """No access token required to access this route"""
@@ -66,6 +69,10 @@ class PrintAction(BaseModel):
# }
# return result
+@app.post("/api/google/update")
+def write_todos(code: GoogleUpdate, auth_result: str = Security(auth.verify)):
+ print(code.code)
+ return {"status": "success"}
@app.get('/api/first_run')
def first_run():
@@ -101,7 +108,6 @@ def get_todos(date: str = datetime.today().strftime('%Y-%m-%d'), auth_result: st
# return auth_result
-
@app.post("/api/todos/write")
def write_todos(todos: TodoList, auth_result: str = Security(auth.verify)):
"""A valid access token is required to access this route"""
diff --git a/application/static/index.html b/application/static/index.html
index 633e2c3..5cf8970 100644
--- a/application/static/index.html
+++ b/application/static/index.html
@@ -18,6 +18,9 @@
+
+
+
@@ -446,6 +449,34 @@
+
+
+
+