chore: refactor Microsoft OAuth configuration to unify client ID and secret for Teams and OneDrive in environment files and related code

This commit is contained in:
Anish Sarkar 2026-03-28 16:37:23 +05:30
parent bb894ee158
commit 7004e764a9
6 changed files with 24 additions and 36 deletions

View file

@ -98,8 +98,8 @@ class OneDriveClient:
async def _refresh_token(self, refresh_token: str) -> dict:
data = {
"client_id": config.ONEDRIVE_CLIENT_ID,
"client_secret": config.ONEDRIVE_CLIENT_SECRET,
"client_id": config.MICROSOFT_CLIENT_ID,
"client_secret": config.MICROSOFT_CLIENT_SECRET,
"grant_type": "refresh_token",
"refresh_token": refresh_token,
"scope": "offline_access User.Read Files.Read.All Files.ReadWrite.All",