Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function createUser
import { createUser } from "https://deno.land/x/netzo@0.2.94/plugins/portals/utils/db.ts";

Creates a new user in the database. Throws if the user or user session already exists.

Examples

Example 1

import { createUser } from "netzo/plugins/portals/utils/db.ts";

await createUser({
  login: "john",
  sessionId: crypto.randomUUID(),
});