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", } );