Re-login attempt doesn't work after refactoring.
In executeRestfulFunction login mode doesn't pass properly.
const loginResponse = await viamApi.identityLogin("previousaddeddevice"); should be changed to
const loginResponse = await viamApi.identityLogin(null, "previousaddeddevice");
Edited by Igor Markin