Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config, client) {
super({
toots: getToots
});
this._client = client ? client : new Mastodon(config.accessToken, config.url);
this._config = config;
this.ready = this.checkLogin().catch((e) => {
console.error("MastodonAccount checkLogin", e);
throw e;
});
}