From 9f1027c0bf6177631037604a0ecb011fcf41f3d3 Mon Sep 17 00:00:00 2001 From: jefer94 Date: Fri, 13 Sep 2024 16:47:52 -0500 Subject: [PATCH] refresh google token --- breathecode/services/google_meet/google_meet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/breathecode/services/google_meet/google_meet.py b/breathecode/services/google_meet/google_meet.py index bc8ce9b9c..e0d9ce600 100644 --- a/breathecode/services/google_meet/google_meet.py +++ b/breathecode/services/google_meet/google_meet.py @@ -112,9 +112,11 @@ def _get_credentials( client_id=os.getenv("GOOGLE_CLIENT_ID"), client_secret=os.getenv("GOOGLE_CLIENT_SECRET"), ) + creds.refresh(Request()) elif os.path.exists(TOKEN_FILE_NAME): with open(TOKEN_FILE_NAME, "rb") as token: creds = pickle.load(token) + creds.refresh(Request()) # If there are no valid credentials available, raise an exception if not creds or not creds.valid: