From 7a3398a8e05a783cd3bc3fed7b776f3b4663ee7c Mon Sep 17 00:00:00 2001 From: Jana R <94439978+grjan7@users.noreply.github.com> Date: Thu, 20 Jun 2024 14:21:47 +0530 Subject: [PATCH] Fixed bugs in the EXAMPLES.md's code snippets (#994) Co-authored-by: Frederik Prijck Co-authored-by: Frederik Prijck --- EXAMPLES.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index ad61d9470..8fbb5e55e 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -29,7 +29,7 @@ const auth = new AuthenticationClient({ clientSecret: '{YOUR_CLIENT_SECRET}', }); const { data: user } = await auth.database.signUp({ - user: '{USER_EMAIL}', + email: '{USER_EMAIL}', password: '{USER_PASSWORD}', connection: 'Username-Password-Authentication', }); @@ -181,7 +181,7 @@ while (true) { } ``` -> Note: The maximum number of users you can get with this endpoint is 1000. For more use `users.exportUsers`. +> Note: The maximum number of users you can get with this endpoint is 1000. For more, use `users.exportUsers`. ### Paginate through a list of logs using checkpoint pagination @@ -197,7 +197,7 @@ const management = new ManagementClient({ const allLogs = []; let from = ''; while (true) { - const { data: logs } = await mgmntClient.logs.getAll({ from }); + const { data: logs } = await management.logs.getAll({ from }); if (!logs.length) { break; } @@ -271,7 +271,7 @@ const management = new ManagementClient({ clientSecret: '{YOUR_CLIENT_SECRET}', headers: { 'foo': 'applied to all requests' }, agent: new https.Agent({ ... }), - httpTimeout: 5000 + timeoutDuration: 5000 }); await management.users.get({ id: '{user id}' }, { headers: { 'bar': 'applied to this request' } });