Automatically generated API client for Takaro.
import { AdminClient, Client } from '@takaro/apiclient';
const url = 'http://localhost:13000';
const adminClient = new AdminClient({
url,
auth: {
clientSecret: config.get('adminClientSecret'),
},
});
const createdDomain = await this.adminClient.domain.domainControllerCreate({
name: 'test-domain',
});
const client = new Client({
url,
auth: {
username: createdDomain.data.data.rootUser.email,
password: createdDomain.data.data.password,
},
});
await client.login();