diff --git a/examples/client.js b/examples/client.js index 3c4fbd6..ff05379 100644 --- a/examples/client.js +++ b/examples/client.js @@ -7,8 +7,11 @@ dotenv.config(); async function main() { const client = TribufuClient.fromEnv("TRIBUFU"); - const clientInfo = await client.getClientInfo(); - console.log(clientInfo); + + if (await client.passwordLogin("", "")) { + const userInfo = await client.getUserInfo(); + console.log(userInfo); + } } main();