From 227be36342c0579fb9d06dedb6860f1dc30ee72c Mon Sep 17 00:00:00 2001 From: tigeryu8900 Date: Sun, 14 Dec 2025 14:28:13 -0800 Subject: [PATCH] fix onedrive oauth --- src/background.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/background.ts b/src/background.ts index bb59a2f9..0612e263 100644 --- a/src/background.ts +++ b/src/background.ts @@ -379,6 +379,15 @@ function getBackupToken(service: string) { Accept: "application/json", "Content-Type": "application/x-www-form-urlencoded", }, + body: "client_id=" + + getCredentials().onedrive.client_id + + "&client_secret=" + + getCredentials().onedrive.client_secret + + "&code=" + + value + + "&redirect_uri=" + + redirUrl + + "&grant_type=authorization_code", } );