Login with Keys
info
Before you start, you need to create an account on Clash of Clans API Developer Portal.
To login with your own keys, generate the keys by entering a key name, description and your public IP address with your key options.
import { Client } from 'clashofclans.js';
const client = new Client({ keys: ['***'] });
// or
client.setKeys(['***']);