diff --git a/manifest.json b/manifest.json index 551e1cc..4e4e423 100644 --- a/manifest.json +++ b/manifest.json @@ -58,12 +58,21 @@ { "url": "https://oauth.accounting.sage.com/.*", "methods": ["POST"], - "timeout": 20 + "timeout": 20, + "settingsInjection": { + "client_id": { + "body": ["client_id"] + }, + "client_secret": { + "body": ["client_secret"] + } + } }, { "url": "https://api.accounting.sage.com/v3.1/.*", "methods": ["GET", "POST", "PUT"], - "timeout": 20 + "timeout": 20, + "settingsInjection": {} } ] } diff --git a/src/constants.ts b/src/constants.ts index 571db5a..52c456c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -21,7 +21,7 @@ export const placeholders = { REFRESH_TOKEN: `[user[${REFRESH_TOKEN_PATH}]]`, CLIENT_ID: "__client_id__", CLIENT_SECRET: "__client_secret__", -}; +} as const; export const DEFAULT_ERROR = "There was an error!"