No results to display

1. Introduction2. Getting started2.1. Creating a database2.2. Tables2.3. Documents2.4. Expressions2.5. Aliases2.6. CLI2.7. Drivers3. Basic API3.1. Creating a table3.2. Editing a table3.3. Dropping a table3.4. Insert a document3.5. Get a document3.6. Delete a document3.7. Update a document3.8. Selecting documents3.9. Getting metadata4. Admin API4.1. Creating a user4.2. Deleting a user4.3. Regenerating tokens

Creating a user

Creating a user is quite simple. Please note that this requires an admin token:

await cookieDB.createUser({
  username: "cookie_user",
  token: "some_strong_and_rng_token",
  admin: true,
});
← PreviousAdmin APINext →Deleting a user