From 5125fc734b54bb6accc3a7fd523c276cd08aa042 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 9 Jan 2024 21:01:29 -0300 Subject: [PATCH] Update client.js --- examples/client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();