Skip to content

Commit

Permalink
Fixed bugs in the EXAMPLES.md's code snippets (#994)
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Prijck <[email protected]>
Co-authored-by: Frederik Prijck <[email protected]>
  • Loading branch information
3 people authored Jun 20, 2024
1 parent 783c432 commit 7a3398a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down Expand Up @@ -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

Expand All @@ -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;
}
Expand Down Expand Up @@ -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' } });
Expand Down

0 comments on commit 7a3398a

Please sign in to comment.