Logs in a user with the provided username and password.

login(username, password)
.then(response => {
console.log('Login successful:', response);
})
.catch(error => {
console.error('Login failed:', error);
});
await login(username, password);
  • Parameters

    • usr: string
    • pwd: string

    Returns Promise<any>