K
K
Kafkae2020-03-06 04:32:38
1C-Bitrix
Kafkae, 2020-03-06 04:32:38

What is the best way to update a temporary token?

Hello!
You need to make a parser on the node for bitrks (yes, it’s necessary).
Since there is a temporary token in Bitrix, I want to read a file on the server with the current token using axios. But to get nothing from the promise to the global to the external one.

let token = временный токен из axios
const bx = Bitrix(
  'сайт.ру',
  `${token}`,
);


What is the best way to get data from an asynchronous function (outside the function) or do something differently, for example, by generating bx . How to do it better?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question