diff --git a/config.json b/config.json index 089c6a7..ed3836c 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,7 @@ { "baseUrl":"https://status.youverify.co/api/v1/", "token": "7B718WzxyW4pYbcSzwzy", + "accessToken": "4a355e28766e915675555ed488f6f407", "timezone": "Africa/Lagos", "components": [ { diff --git a/index.js b/index.js index b11bd1e..057fb37 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,7 @@ async function monitorNewComponent(component){ headers:{ 'Content-Type': 'application/json', 'X-Requested-With': 'XMLHttpRequest', - 'token': '4a355e28766e915675555ed488f6f407', + 'token': components.accessToken, }, timeout: 60000 });