You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we please update the Connection class to return the User when the ready function resolves?
This way we can use it to logout from the device.
I don't see another way to logout with the API.
If we don't logout and try to login again, the device throws an error saying someone is already logged in.
Connection.js, line 72 onwards:
_this.initializeCsrfTokensAndSession().then(function () {
// Login code
if (username) {
// Username is specified, we need to login
var user = new User_1.User(_this, username, password);
user.login(true).then(function () {
resolve(user); //Return the user that has logged in.
}).catch(reject);
}
else {
resolve();
}
}).catch(reject);
});
The text was updated successfully, but these errors were encountered:
Can we please update the Connection class to return the User when the ready function resolves?
This way we can use it to logout from the device.
I don't see another way to logout with the API.
If we don't logout and try to login again, the device throws an error saying someone is already logged in.
Connection.js, line 72 onwards:
The text was updated successfully, but these errors were encountered: