Display webex oauth errors
This commit is contained in:
+6
-1
@@ -50,7 +50,12 @@ class WebexManager:
|
||||
"redirect_uri": self.redirect_uri
|
||||
}
|
||||
res = requests.post(f"{self.base_url}/access_token", data=payload)
|
||||
res.raise_for_status()
|
||||
|
||||
if not res.ok:
|
||||
# Print or log the exact Webex error response
|
||||
print(f"Webex Error Details ({res.status_code}): {res.text}")
|
||||
res.raise_for_status()
|
||||
|
||||
return self.save_tokens(res.json())
|
||||
|
||||
def refresh_token(self, refresh_token: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user