Skip to content
Snippets Groups Projects

Resolve "Re-login attempt doesn't work after refactoring."

Merged Igor Markin requested to merge 33-re-login-attempt-doesn-t-work-after-refactoring into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -266,7 +266,7 @@ async function executeRestfulFunction(type, that, fn, config, ...args) {
const badSession = type === "private" && identity && code === "400" && status === "Bad session";
if (!badSession) return response.data;
const loginResponse = await viamApi.identityLogin("previousaddeddevice");
const loginResponse = await viamApi.identityLogin(null, "previousaddeddevice");
if (loginResponse.data.code !== "200") return loginResponse.data;
const uuid = loginResponse.data.data["Uuid"];
Loading