From 180404b5592a08667fcbe219df891ab38ec3971d Mon Sep 17 00:00:00 2001 From: Stas-Buzunko Date: Sun, 9 Aug 2020 15:41:04 +0300 Subject: [PATCH] reset TOKEN for each init invocation --- api/sendpulse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/sendpulse.js b/api/sendpulse.js index 751ef34..8d773b0 100644 --- a/api/sendpulse.js +++ b/api/sendpulse.js @@ -74,6 +74,7 @@ function init(user_id, secret, storage, callback) { API_USER_ID = user_id; API_SECRET = secret; TOKEN_STORAGE = storage; + TOKEN = ''; if (!callback) { callback = function () {