Attaching a User Account
Switching library to the full state mode
Last updated
Was this helpful?
Was this helpful?
console.log('Attaching account...');
await client.login(accountConfig);
console.log('Seems all right!');
await client.logout();
console.log('See you later...');hasAccount(): booleanconst res = client.hasAccount()
console.log(`Library operates in ${res ? 'full' : 'account-less'} mode`);